Recurring changing owership problem on external HDD

If your HDD is read-only, you will obviously not be able to chown your files. Afaik, hfs+ support isn't optimal (yet) under Linux. Have you installed all the necessary packages (I think you'll need hfsplus and/or hfsprogs)? Have you tried mounting it correctly?

This post might (if you haven't checked it yet) help you with these steps:
https://superuser.com/questions/84446/how-to-mount-a-hfs-partition-in-ubuntu-as-read-write

Finally, you're talking about an external HDD: are you sure HFS+ is an appropriate choice for an xHDD? FAT32 is currently the most "universal" filesystem, and NTFS is starting to gain write support on most systems.

Sure, FAT32 and NTFS suffer from serious external fragmentation, but i don't think you use your xHDD to run an operating system or heavy applications directly on it, do you? :-)

Note that you need to chose between compatibility and functionality: both FAT32 and NTFS lack a proper ownership and permissions system, and FAT32 has a max. file size limit of 4GB on FAT32.


Increase sudo timeout from within a bash script

I will post an answer to my problem in case anyone else runs into such issue in the future.
Thanks for the help @steeldriver.

Indeed, it is better to use sudo on the whole script and then escape commands within which specifically need to be run as the user with a prefix: sudo -u $SUDO_USER. Importantly, when the script is run with root privileges the $HOME changes, so be careful. In order to refer to the original user's home create a variable:

USER_HOME=$(sudo -u $SUDO_USER -H -s eval 'echo $HOME')

and then operate on paths with the prefix of $USER_HOME, if required.


how to know which program uses key as keyshortcuts

Open "Keyboard" settings window and proceed to the shortcuts tab. Then select any unassigned shortcut and try to assign F12 to it. In the case of conflict you will be warned which command holds this shortcut.


working with modprobe for getting wifi driver working

You'd add it to the end of /etc/modules. Here's a command that will handle that for you. Stick it in a terminal.

echo rt2800pci | sudo tee -a /etc/modules


routing between LXC containers in deferent subnets

if they run on the same host you should take care that you can ping the ip-addresses set for your containers. make sure no firewall on the host is block anything. read here for more details about LXC networking: https://wiki.debian.org/LXC/SimpleBridge


How to create (via installer script) a task that will install my bash script so it runs on DE startup?

Launcher

The tasks in /etc/xdg/autostart are started by the Desktop Environment with the current user's credentials and they can access the GUI, so I think this is the best choice.

File /etc/xdg/autostart/updateNotification.desktop:

[Desktop Entry]
Name=My Update Notification
Exec=updateNotification.sh
Terminal=false
Type=Application
NoDisplay=true

Monitoring script

The monitoring script must be placed in a world accessible location. I recommend /usr/local/bin because messing with files in that directory will not affect the OS. I changed you script a little bit.

File /usr/local/bin/updateNotification.sh:

#!/bin/bash

# Exit if this script is already running.
[[ $(pgrep -c -u $USER -f "^/bin/bash ${0}$") -gt 1 ]] && exit 0

NotifFile=~/.updateNotification.txt

source easybashgui

# Wait some time before starting monitoring the file, so the user doesn't get a popup right after logging in.
sleep 120

while true; do
    if [[ -s $NotifFile ]]; then
        read MSG < $NotifFile
        # Only empty the file if the message is successfully displayed.
        message "$MSG" && echo -n > $NotifFile
    fi
    sleep 3600
done

exit 0

Of course, you'll have to download easybashgui, extract it and install it.

tar xzf easybashgui-8.0.1.tar.gz
cd easybashgui-8.0.1/
sudo make install

Installer

I really like to use bash self-extracting files because the entire installation process can be embeded in a single file. All we have to do is concatenate a pre-built bash header with a tar file.

Before creating the archive make sure all the files are in the place they should be and have the right permissions, in this case:

sudo chown root:root /etc/xdg/autostart/updateNotification.desktop
sudo chown root:root /usr/local/bin/updateNotification.sh
sudo chmod 644 /etc/xdg/autostart/updateNotification.desktop
sudo chmod 755 /usr/local/bin/updateNotification.sh

We can also include easybashgui in the installer. Uncompress easybashgui archive to /tmp:

tar zxf easybashgui-8.0.1.tar.gz -C /tmp

and tar all the required files:

sudo tar zcf MyArchive.tar.gz /etc/xdg/autostart/updateNotification.desktop /usr/local/bin/updateNotification.sh /tmp/easybashgui-8.0.1/

Create the bash header that will uncompress the archive and install easybashgui. File header.sfx:

#!/bin/bash
DATA=`awk '/^__BEGIN_DATA__/ { print NR + 1; exit 0; }' $0`
tail -n+$DATA $0 | tar zx -C /

# Additional installation steps
cd /tmp/easybashgui-8.0.1/
make install

exit 0

# The following line must be the last one. Don't place any character after it.
__BEGIN_DATA__

Finally, join the header and the archive:

cat header.sfx MyArchive.tar.gz > MyInstaller.sh

Now you can copy that installer to another machine, give it execution permission and run sudo ./MyInstaller.sh.

That's it. Hope it helps.


Convert Windows text file to Ubuntu text file

I have tried the following command on Windows to convert the text file to Linux format

Try to run the commands on your Ubuntu machine. tr is in coreutils and therefore always available, dos2unix needs to be installed.

As a side note: In Python, a file object has the attribute newlines, that stores all end-of-line characters in a tuple. Is something similar available for C++?


You can use it on a desktop.
The "desktop" is actually a misnomer. It will work on laptops quite well. In fact, I'm using it on a laptop right now.
The term "desktop" is only to distinguish it from "server" edition where it has no GUI and only a terminal. That will work but it is not useful for a non-server-class user.
You can look in the official resources to know if your hardware is fully supported and avoid any surprises. Look in the wiki page or the certified hardware page. You should note graphics cards, and wireless, especially.
After this, download the file, burn it, and boot it!
I hope you'll enjoy Ubuntu.
Remember that if your processor is 32-bit, you'll need the i386 (32-bit) edition of Ubuntu.
I also want to note that Ubuntu will work on tablets, thanks to Paddy Landau's comment:

In addition to the helpful answers, Ubuntu also works (with the right hardware) on touch-screen tablets. There are even Ubuntu TV and Ubuntu for Android[to install on Android devices, not referring to what kernel and system libraries power the OS] but  in development.


Using awk for a bash script that defines a "minimum packages set"

You could do something "stateful" ex.
$ awk -v item='item-1' '$0 !~ /^[[:blank:]]/{p=0} $0 ~ "^" item {p=1} p' deplist
item-1
  fixed-string substring-1-1
  fixed-string substring-1-2
  fixed-string substring-1-3

How this works:

set p=0 whenever we match a line that stars with anything other than horizontal whitespace (you could use your original slightly more specific ^[A-Za-z0-9] here)

set p=1 if we match the desired ^item

print whenever p==1

Essentially "turn printing on when we match the desired item and turn it off when we match any other item".
You'll need a bit of extra logic to skip the matched line:
$ awk -v item='item-1' '
      $0 !~ /^[[:blank:]]/{p=0} {m = $0 ~ "^" item ? 1 : 0} m {p=1} p && !m
  ' deplist
  fixed-string substring-1-1
  fixed-string substring-1-2
  fixed-string substring-1-3

Here, we perform the same match but save the result in variable m; then set p=1 when m is true (this part is identical to what we had before); we then only print when both p==1 and m==0 i.e. skip the line where the actual match occurs.


On Debian and Ubuntu CPAN (/usr/bin/cpan utility) installs modules into /usr/local/lib/ by default. And debian packages keep their files in /usr/share/perl5/ and /usr/lib/perl5/. So files installed via /usr/bin/cpan won't overwrite files installed via apt.

There's nothing wrong with using system perl, and mixing apt and cpan code will generally work.

You can also choose to package any cpan distribution not available in your apt repositories manually. It's easy with the help of dh-make-perl tool:

dh-make-perl --cpan Some::Module && cd Some-Module* && sudo debi


Command for opening application using java through terminal?

you can run jar files using this command:

java -jar NameOfJar.jar


If you cannot remove a user that is certainly because some process are still running belong him.

First you can list his process with:

ps -aux | grep someuser

If that is the case, you can kill all his process with

sudo pkill -u someuser

Then execute deluser again

deluser someuser

or

sudo deluser someuser


You can just alt to root and change your password like that:

root@hello:~# passwd Your_Name
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@hello:~#

It doesn't care about the password history.

Or, you can chose a random password this time(like asdkjhavbaudifsd) and then change it back to your previous password.


How to exclude a repository while installing updates using apt-get

Go to System Settings... > Software & Updates, select Other Software tab and follow the instructions from the next immage:

Generally, if you don't want that a particular package to be updated, you can block it by running next command in terminal:

echo "[packagename] hold" | sudo dpkg --set-selections


My acer laptop wont start after I rebooted Ubuntu

You can use repair boot, it has an option call : "boot reinstall" and it use a graphical interface or you can use command line using grub wiki


Problem with netflix-desktop and Kubuntu 12.10

There are some windows dependencies that get installed on the first boot of netflix-desktop that don't always succeed. This happened to me once. So I typed sudo apt-get -reinstall install netflix-desktop    and it fixed it right up for me.  Also there is a point where Microsoft will want you to sign-off on a EULA. You'll need to tab to highlight the [OK} button.


NPM is incorrect version on latest Ubuntu (18.04) installation

TLDR: This problem is caused by Bash caching the path of the npm command, and can be solved by hash -d npm.  You don't even need to deal with apt purge unless you want to.

Explanation

Here were my steps for getting a new npm version on Ubuntu.  First, do the installation as OP describes:

$ sudo apt-get install npm
(...apt installation of npm was successful...)
$ npm -v
3.5.2
$ command -v npm
/usr/bin/npm
$ sudo npm install -g npm
(...npm installation of npm was successful...so far, so good)

You can see that the new version is already working fine in /usr/local/bin/npm, but unfortunately the Bash cache still has /usr/bin/npm:

$ /usr/local/bin/npm -v
6.4.1
$ npm -v
3.5.2
$ command -v npm
/usr/bin/npm
$ type npm
npm is hashed (/usr/bin/npm)

To fix the problem, clear it from the Bash cache (do this in all open shells):

$ hash -d npm

Now the new version works as desired:

$ npm -v
6.4.1
$ command -v npm
/usr/local/bin/npm


You should reinstall the driver for touchpad.

First, delete your old dkms module, using terminal:

cd /var/lib/dkms/psmouse/

rm -rf alps-dst-0.4
Download the new driver fom here.
Install it, following next commands in terminal:

tar xvf psmouse-alps-1.3-alt.tbz
cp -afr usr/src/psmouse-alps-1.3/ /usr/src/
dkms add psmouse/alps-1.3
dkms autoinstall
rmmod psmouse && modprobe psmouse


Problems with Microsoft Wireless Keyboard 5000

Have you tried setting the keyboard at the login screen? Click your user name and from the middle menu select other and you will find six keyboard options for Brazil.

Regards.


How to disable the dynamic transparency effect of the dock while maximizing a window?

Transparency of Ubuntu Dock
Open Terminal and run the following command first to allow custom alpha values for Ubuntu dock
gsettings set org.gnome.shell.extensions.dash-to-dock customize-alphas true

Then run the following command to obtain the alpha value of the dock as in the first screenshot
gsettings get org.gnome.shell.extensions.dash-to-dock min-alpha

The output is say 0.2.
Finally run the following to set the maximum alpha value (i.e. when a window is maximised)
gsettings set org.gnome.shell.extensions.dash-to-dock max-alpha 0.2

Then log out and log in again.
Transparency of the top bar
You may use a GNOME shell extension called Dynamic Panel Transparency to achieve fixed transparency of the top bar.

Install the extension from the link above.
Reload the page. A settings icon should appear.
Click on the settings icon. A window should pop up.
Go to the "Background" tab and toggle on "Enable custom opacity".
Set low values (say 30% or 40%) for both "Maximized Opacity" and "Unmaximized Opacity".

Log out and log in again.


How do I wrest ownership from root or get administrator privileges?

As you have found out things are a bit different in Linux and replicating Windows way may not be the best option. In Linux, all your documents are kept in the /home/username/. The way you have set it up /home is now a folder under the / (20GB) partition. While this partition may be adequate for the OS, it may be too small for all the data, music, photos, video etc.

What you may want to do is set /home as a partition rather than a folder.

Backup /home folder and /D-Drive partition.
The easiest way to create a /home partition is at the time of installation. While reinstalling, (at "Something Else" stage) delete /D-Drive and create a new ext4 partion in its place and call it /home (note: it has to be all lower case). Then Ubuntu will know you want to keep your documents and data there.
If you later create other users for this computer and want to keep some files that can be accessed by other users, you may create /home/D-Drive as a folder in /home partition. Right click on the folder and choose Properties. In the Permissions tab allow others to create and delete.

Of course the /home folder can be moved to a /home partition, without reinstalling but the process is a bit complex and I won't recommend it for a new user who may not have a lot of stuff in the home folder.


Using avconv and keeping Audiostreams and Subtitles

To force FFmpeg/Libav to copy all input streams to the output, use the -map 0 option.

ffmpeg -i in.mkv \
       -map 0 -c copy \
       -c:v mpeg2video -qscale:v 2 \
       out.mkv

FFmpeg and Libav should behave the same way here. See How to use -map option on the FFmpeg wiki. Try the suggested '-qscale:v 2' option in this commandline, it should give excellent results, or simply keep the bitrate options as specified in your own post.


Bluetooth toggle not working in Ubuntu 21.04

try:
sudo nano /etc/default/grub

substitute "quiet splash" by "quiet splash acpi_osi=Linux"
save changes (nano only): CTRL+x / key y / Enter

sudo update-grub

restart computer.


Ubuntu 13.04 install gone wrong: no GUI in ubuntu and CANNOT boot into Windows 8

Ok, I am very sorry. As I said, I had a little trouble with the 13.04 (it is also an unstable version). Just got with the Long Term Support version 12.04 LTS. This version is very stable and no problems on it. I can't propose any solution because I haven't tried deeply 13.04 so far. But if I find the solution to your problem, I'll let you know.

12.04 is stable and supported until 2017. If you try to install it alonside Windows 8, format a partition (to ext2 or ext4) then install Ubuntu on it. It is advided to use the swap partition (1GB) if you computer has less than 4GB. After installing, you should have GRUB and then boot ubuntu. Any trouble with 12.04, tell me


I can't Install starUML StarUML-3.2.2 in lubunto 18.04

The AppImage is single executable file (one app = one file). It does not install to the system by default.

But you can forcibly extract it and install as done in ArchLinux AUR PKGBUILD:

chmod +x StarUML-3.2.2.AppImage
./StarUML-3.2.2.AppImage --appimage-extract

sudo mkdir -p /opt/staruml /usr/local/share/applications /usr/local/bin/
find ./squashfs-root/* -path ./squashfs-root/usr -prune -o -prune -exec sudo cp -Rf {} /opt/staruml \;
sudo cp -Rf ./squashfs-root/usr/share/* /usr/local/share
sudo cp -fp  ./squashfs-root/staruml.desktop /usr/local/share/applications
sudo sed -i 's/AppRun/staruml/g' /usr/local/share/applications/staruml.desktop
sudo chmod -R 755 /opt/staruml
sudo ln -fs /opt/staruml/staruml /usr/local/bin/staruml
sudo cp -Rf ./squashfs-root/usr/share/icons/* /usr/local/share/icons/
sudo chmod -R 755 /usr/local/share/icons/
sudo ln -fs /usr/local/share/icons/hicolor/512x512/apps/staruml.png /opt/staruml/staruml.png

and then launch it from menus or using staruml command in the terminal.


Ubuntu 18.04 frequent crashing and instability

It turned out I had a faulty RAM chip which was causing all sorts of random errors and general system instability. I diagnosed this with memtest64.


Live CD boot/installation problem, blank screen - 12.04

Honestly, I would try a CD, if you don't have a CD Drive, (Rare, but it happens.) I would try redoing the the flashdrive with pendrive again. If still no luck, I would re-download the .iso... I myself have similar issues, so I'm trying Wubi again, and if you have Windows, if the CD or USB don't work, and nothing above works, try Wubi and I know it's not ideal, AFAIK support won't be available in the future but it could be an available option.


Why is apache2.conf.swp inside /var/tmp more than 6GB?

I realize this is an old (and hence probably obsolete) question, but I am answering in the hope that it may still help someone in my situation. My /var/tmp/apache2.conf.swp file was 31GB, filling my 40GB root to the brink.
Examining with file showed that the swp file was created when the /etc/apache2/apache2.conf file was edited with vi a few days ago.
# file apache2.conf.swp

apache2.conf.swp: Vim swap file, version 8.0, pid 2846, user xx, host xxx, file /etc/apache2/apache2.conf, modified

And since no process with PID 2846 was running currently (nor any other vi process), I figured it is safe enough and deleted the file.


The following is the answer for this issue.

I tried using the "Boot-Repair-Disk" thumb drive again, and instead used the steps described in the Grub fix Grub not working after Windows 8.1 update on Ubuntu 12.04 LTS . So in boot repair select ADVANCE OPTIONS. It presented a new set of instructions I didn't see the last time I tried. It gave me selections to re-install Grub in the /sda, and NOT install the EFI in a separate partition, like it was doing. I think that selection UNCHECKED allowed the EFI to be installed in /sda, along with Grub. Upon BOOTing I see the Grub menu, BUT with ONLY Ubuntu & Options as selections. There doesn't seem to be a Windows selection in the Grub.

On my machine you press F12 during Boot to bring up the hard drive menu, select which one to boot from. BUT, if the Windows drive is selected, it first showed the "Starting Windows" screen for a few seconds, then defaulted to the Grub menu, then to Ubuntu.

Since monkeying around with this issue, other errors cropped up with Apt, dbus, etc (search my past posts to see what I mean), which necessitated me having to backup all data, then wipe the drive clean, and do a fresh install of Xubuntu 16.04.1 LTS to correct all these issues. Currently, I have to use rEFInd Boot Manager http://www.rodsbooks.com/refind/getting.html on a disc to boot into Xubuntu, which shows a Grub menu that does show Ubuntu, Options, and a Windows boot loader - seemingly solving this issue. After boot, I can remove the disc and replace it with anything, and Xubuntu works great.

So, Back in this Saddle again.


How to install google chrome browser on a i386 (32 bit) ubuntu 14.04?

For me it seems as the download was deleted because this browser is not supported any more from Google. Why didn't you try to install chromium?

But even you need the download:
https://archive.org/download/google-chrome-stable_48.0.2564.116-1_i386/google-chrome-stable_48.0.2564.116-1_i386.deb


The link you point to is basically correct, with a few caveats:

Compose inserts the character corresponding to the first (shortest) match.  Suppose .XCompose contains the following entries:

 <Multi_key> <space>                  : " "   nobreakspace # NO-BREAK SPACE
 <Multi_key> <space> <space>          : " "   U2002        # EN SPACE
 <Multi_key> <space> <space> <space>  : " "   U2003        # EM SPACE

Attempts to use EN-SPACE or EM-SPACE will never work.
To get Compose to work with GTK, add the following line to .profile:

export GTK_IM_MODULE=gtk-im-context-simple

Regarding gtk-im-context-simple, Jens Mühlenhoff notes (1, 2):

  In the API documentation:

  GtkIMContextSimple reads additional compose sequences from the first of the following files that is found:

  ~/.config/gtk-3.0/Compose
  ~/.XCompose, /usr/share/X11/locale/$locale/Compose (for locales that have a nontrivial Compose file)

  So the gtk-im-context-simple method has a built-in table and it loads compose sequences from several additional locations. That means it could possible load shorter sequences that you don't expect.


How to order desktop icons by name in XFCE?

In 13.04 it's right there in the menu,

12.04 doesn't have it; haven't tested 12.10.


bpython is a fancy interface to the Python interpreter. I can't get a Python development environment like Spyder to install in my Python virtual environment, but bpython is installed there and it runs OK.

bpython3 is run from the terminal. Open the terminal and type bpython3 to start bpython3.
Type a program one line at a time and press Enter to go to a new line. Every time you press Enter the Python3 interpreter reads and executes the current line interactively. As you can see from the screenshot, bpython3 has an in-line syntax highlighting feature.
You can save the bpython3 session at any time using the keyboard shortcut Ctrl+S. You will be prompted to type a name for the saved file. The session will be saved by default to your Home directory.
Type exit() after the Python interpreter prompt or use the keyboard shortcut Ctrl+D to exit bpython3.


Laptop freezes on battery Dell Inspiron 3521 - Ubuntu 13.10 Gnome shell 3.10

Its due to ATI Catalyst proprietary driver. In 14.04, I am using only open source drivers and its working perfectly fine!

Thanks


Ubuntu signed Grub do not prefix tftp-root directory for tftp requests

You may need to move the root of the tftp server to /grub to match the prefix assigned by the signed bootloader.

/etc/default/tftpd-hpa:
OPTIONS="-v -s /grub"
TFTP_DIRECTORY="/grub"

Can you see the grub.cfg file from grub?

grub> cat (tftp,10.10.1.13)/grub/grub.cfg

or

grub> cat (tftp,10.10.1.13)/grub.cfg

I also found it helpful for debugging the file to  do the following:

grub> configfile (tftp,10.10.1.13)/grub/grub.cfg
error: can't find command 'kernel'
error: can't find command 'append'
...

You can use this to check the syntax for your file.


I can only tell a second workaround: Reopen the exact same hover. I don't know why, but the bug occurs only the first time for the same issue (at least for me). When fixing imports, I find that to be the faster solution that resizing the hover box.


CUPS fails to start due to dependency on Ubuntu 20.04.2 Server

The culprit was a badly formatted netmask in /etc/cups/cupsd.conf. I gather this was causing cups.socket to fail, which was the "dependency failed" above.
The step to identifying this was to run "sudo cupsd -t", which tests the cupsd.conf syntax.


Install a Program from a Directory with All of Its Dependencies

Use sudo dpkg -i *.deb to install all .deb packages


How can I rename a PDF file while viewing it?

Zathura can run external commands, so you can rename files using it. Open a file, then in Zathura, do:

:exec mv % foo.pdf

(The syntax is somewhat like Vim - : to start command mode, % stands for the filename, but that's about it.) But it doesn't pick up that the open file has been moved, so you're left with a blank window after moving. You can open the new PDF file likewise:

:open bar.pdf

It's available for installation in the official repos:

sudo apt install zathura


The release notes are available here (too many to list here):

http://www.mozilla.com/en-US/firefox/5.0/releasenotes/

And here's the complete list of bugs fixed.


Try:

 unset CC CXX CFLAGS CXXFLAGS CPP CXCPP

Variables you set in the shell are only temporarily in that shell, so using another terminal window should also work.

Changes to environment variables are only made permanent when you edit an appropriate configuration file, like /etc/environment, /etc/profile, ~/.bash_profile, ~/.bashrc, etc.


Can't boot Ubuntu properly after dual boot installation with Windows 10

Dont panic. You could use editor to grub, press 'e' before Enter over the option Ubuntu(grub menu). After you should write nomodeset at the end of line which says linux  and after boot. Sure, the installation is well done. Luck. If that doesnt work, you should search grub boot options.

If it is drivers problem, you could try to boot with knoppix and mount/chroot your ubuntu system.

http://www.knopper.net/knoppix-mirrors/index-en.html


Connect mpcie WIFI card thru USB adapter/

Your card supports only PCIe communication while the adapter you purchased uses the USB data line only which is used by mostly all 3G mpcie form factor (pay attention to form factor) modules.
You have to either use a usb WiFi dongle or purchase a fully usb to mpcie adapter (the only one i found: http://www.mfactors.com/mp1-mini-pci-e-pci-e-adapter-ver-1-0a/ ). Or you can use an old WiFi mpcie module that used the USB interface (intergrated to the mpcie form factor, the same that the 3G and BT modules use)


I still can not install Nvidia driver on Ubuntu 16.04

You can try to add ppa ppa:graphics-drivers/ppa as described here and install it with apt-get or "Additional drivers".


Ubuntu won't start after upgrading to 20.10: Failed with result 'start-limit-hit'

At the GRUB menu, try and boot to an older kernel. If that works, then re-run Software Updater. If that doesn't work, reinstall Ubuntu from the Ubuntu Live DVD/USB.


PHP executing for root, but not for other users (apache2 virtual)

By default php is explicitly disabled for /home/*/public_html. To change this on ubuntu 14.04,

cd /etc/apache2/mods-enabled/
sudo cp php5.conf my-php5.conf
sudo rm php5.conf

and edit my-php5.conf by changing the lines

<IfModule mod_userdir.c>
   <Directory /home/*/public_html>
      php_admin_flag engine Off
   </Directory>
</IfModule>

to

<IfModule mod_userdir.c>
   <Directory /home/*/public_html>
      # php_admin_flag engine Off
   </Directory>
</IfModule>

then restart apache with

sudo /etc/init.d/apache2 restart

These commands may need some changes for other versions of ubuntu.


Raw processing grainy under Ubuntu 12.04?

I have been using Darktable as well as UFWRAW for a long while and have even contributed to journals with pictures done with Darktable, I have never come across this issue so far. Have you tried installing the latest version from their respective PPAs.


MySQL Temporary File and apache2 site creation?

Question 1

Yes suggested lines must be putted inside the <VirtualHost> tags.

Question 2

The mentioned manual suggests to you to create a file, called 'wordpress.sql', which will be used for import of few commands into the MySQL server by these commands:

cat wordpress.sql | sudo mysql --defaults-extra-file=/etc/mysql/debian.cnf

The command cat wordpress.sql will print the content of 'wordpress.sql' to the Standard output (stdout), which will be redirected, by the pipe |, to the Standard input (stdin) of the command mysql, invoked with an argument --defaults.... The command after the pipe will be performed by sudo.

Question 3

The MySQL commands that you need are:

$ mysql -u'root' -p

mysql> CREATE DATABASE DataBaseName;
mysql> CREATE USER 'DataBaseUser'@'localhost' identified by 'DataBaseUserPassword';
mysql> GRANT ALL PRIVILEGES ON DataBaseName.* TO 'DataBaseUser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> exit

Where DataBaseName, DataBaseUser and DataBaseUserPassword are subjects of your decision. According to the example the User will be able to access the DataBase only from the localhost, this is enough and safety when Apache and MySQL servers are allocated on the same 'physical' machine. Don't miss the semicolon (;) at the end of each sentence.

Another way how to install WordPress on Ubuntu with LAMP.


MultiBoot using External USB HDD

You can use MultiBootUSB, http://multibootusb.org/, to install multiple OS to a specific partition on an HDD or each OS to it's own partition. Multiple persistence is also possible.

MultiBootUSB 9.2 is working with Ubuntu up to 18.04. It will boot 'buntu 20.04 ISO's placed in the /multibootusb/iso/ folder. Persistence and UEFI boot is working with Linux versions but not with the Windows version of MBUSB.

It is easy to just install GRUB to a hard drive and use that to boot ISO files. The following was written for USB but also works on HDD: How do I create a Multiboot USB that is compatible with both BIOS and UEFI?


First remove the current nvidia drivers installed and with the help of the below command,

sudo apt-get purge nvidia-current

After removing open the Terminal and login to your domain with the help of username and password. Use the below command and stop the graphic usage,

sudo service lightdm stop

Then try installing the nvidia again and start the installer,

chmod +x NVIDIA-Linux-*-331.38.run

sudo sh NVIDIA-Linux-*-331.38.run

Hope this helps.


Cannot install xorgxrdp due to dependency issues

I had the same problem, and I found this page very helpful: https://c-nergy.be/blog/?p=13390
Specifically, the following steps fixed it:

sudo apt-get install xserver-xorg-core
sudo apt-get install xserver-xorg-input-all
sudo apt-get install xrdp

The page warns that you might lose local keyboard/mouse input if you reboot after the first step; the second step will fix it.


Francisco
mmblck0 is (propably) a SD Card in your laptop. I have similar problem and I was forced to reinstall grub from live CD. Some BIOS and GRUB don't read SD Cards for boot, so this is the problem. I think that solution proposed by RhZ is correct. You should boot from LiveCD login to your machine by chroot and then reinstall GRUB on any bootable partition.


the next time I format my pc

This might have something to do with your problem.

You need to ensure that you only format the 10GB partition that contains Ubuntu, and leave the rest untouched.

If you are formatting using the Ubuntu installer, then you need to tell it not to use the "whole drive" but instead point it to that 10GB partition and tell it to use that only.

If you could provide more information about what you are doing when you format your computer, that might help.


Abbreviated procedure...
ps: you can't really have two sda4 partitions...
Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.
The use of an extended partition (sda4) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot the a Ubuntu Live DVD/USB
start gparted
resize the left side of sda4 (extended partition) left 50gb
move sda5 partition all the way left
resize the right side of sda5 all the way right

If it looks correct, hit the Apply button.


How to install library libgvfscommon on Ubuntu 16.04?

From http://packages.ubuntu.com/search?suite=xenial&arch=any&mode=exactfilename&searchon=contents&keywords=libgvfscommon.so, you need to install the gvfs-libs package:

sudo apt-get update
sudo apt-get install gvfs-libs


Moved /etc to home directory, now I can't boot, how do I move the directory back?

Use a Ubuntu live CD and move 'etc' again.


Is there a fairly noob friendly way to transfer a working Ubuntu OS from an external drive, to an internal one?

You can do this via GUI using Clonzilla.

Create a Clonzilla USB or CDRom and boot to it.

Then follow the prompts to clone device to device.  Select your current external drive as the source and the new internal drive as the destination.

After you have completed the clone, it should boot the same way your previous external drive booted.

Once you have verified the functionality, you can use GParted (from the Ubuntu dash search) to resize the partitions to use the full sizes of larger drive.

Alternatively

The most important part is the partition where your Ubuntu is installed.  Once you have that partition copied to your new drive, you can simply install Grub on the new drive and have to make it bootable.

There are many messages posted on recovering for failed boots when Windows 10 overwrites the grub boot manager.  Once you have the Ubuntu partition of your external drive copied to your internal drive, just install grub on the internal drive for full functionality.

This is an easy method for installing, or reinstalling grub:
https://askubuntu.com/a/877815/29012


Ubuntu 14/15 on hp pavilion cutting net connections after first http request

I couldn't find a reason for this behaviour or the root cause for it. I installed pci-e network adapter and everything is working just fine. I guess there's some sort of voodoo baked into the embedded adapter which comes with HP motherboards. Case closed.


Are OpenID logins compromised with the Ubuntu Forums breach?

Since OpenID login is always processed on the issuer side (for example, if you use OpenID you got from Launchpad, then Forums will contact Launchpad and it is Launchpad who processes your authentication), the Forums do not keep your OpenID password (they don't need it at all).

Therefore, all the attackers can get is your OpenID login, but not the password, since it's not actually there.

Also, just for completeness, according to this official announcement, only the Forums are affected, no other services are.


As the error message says, you should run Boot-Repair in UEFI mode. Since your main installation does not support that, you have to get a system where it’s possible. Moreover, modifying important properties of the running installations (like moving the root partition) is mostly not possible.

The easiest way is to run Boot-Repair from Ubuntu live medium or even using the Boot-Repair-Disk. Make sure to boot it in UEFI mode, the particular procedure depends on your hardware (or firmware to be precise).


Not with that same compiz plugin, however, you can use the shift switcher plugin, and then press left or right.


Don't take my word for it, but..
If you selected the install Ubuntu on the entire disk, the system will have to format them before installing your OS hence the message.

If there is anything on the disk that you require then you should select "other" and don't mark the format button on the partitions that have data you want to keep.

I usually work with a minimum of three partitions - root-  / home - /home and swap and only format the root partition.


I guess You can set dolphin as default file manager with

xdg-mime default dolphin.desktop inode/directory

I would also check KDE setting: System settings -> Default applications -> File manager

Finally I think dropbox won't respect the setting, because it integrates with nautilus only.


How to not have console messages on shutdown?

In Ubuntu 18.04 Server LTS, edit

/etc/sysctl.d/10-console-messages.conf and set

kernel.printk = 0 4 1 7

Actually the first value (0) is what you need. According to https://elinux.org/Debugging_by_printing, setting that first number to 0 means only "Emergency messages" are shown ("system is about to crash or is unstable").


Nokia Booklet 3G - Black Screen with underscore after Linux install

I had a similar problem with a different laptop.  Fact is, there are many laptops that reportedly won't let you install Ubuntu or other Linux Distro.  But the problem apparently isn't with Linux.

It's with Grub2.  There's something it does, or doesn't do. in the install process that cripples your PC.  Nobody has spelled this out yet, but there is an easy fix.

Download the Boot-Repair-Disk iso image file and burn it to a CD.  It should show up in a search of the internet.  After you've done a Linux install, reboot to this CD.  It will check your system, and if your laptop is like mine in this respect, it may tell you that it has to replace grub2.  I let it, and it later showed me on two screens the commands I had to enter in a terminal window to complete the job.  As I recall, you can copy and paste the commands.  You also have the option to open a terminal window while there.  The toolbar is on the bottom of the screen.

That was it.  I've had no problems in that regard since.  I'm using Ubuntu 14.04, which gave a black screen and blinking cursor right after I installed it.

It should not be necessary to wipe your hard drive.  In extreme cases, that means overwriting every part of the drive multiple times so as to virtually guarantee that whatever was there before is completely and utterly gone.  It should be enough just to format your hard drive, something that takes very little time with Linux because it does not do the whole drive, but only the part you need immediately.  Windows does it differently, so it takes a long time.  You have gparted (gnome partition editor) that you can run from the LiveCD for this purpose.  Or if going right into the install process, you can make changes to the hard drives and partitions as part of the install process by choosing the "Something else" choice that appears at the bottom of the page where you select the manner in which the install is to be done.

Best choice for what to set up your partition(s) as is generally accepted as ext4.  You need one pzrtition to be root, meaning make it "/".  If more than one partition, you can either ignore the others, or designate one or more to other root folders.  I usually only do one as root and let the installer just add the others to the same partition (default).

You need a swap partition as well,  I'd say 16GB would be a good sizem but some might go more or less.  It makes uo for insufficient RAM sometimes, but if you have to use it, your machine will be very slow.  It's better to have more RAM is possible.

160GB drive is not a whole lot.  For some people it would be more than enough.  But with Terabyte and more drives available for $85 and less, I would think seriously about replacing the one you have with a bigger one,  Just get the 2.5" size.  They all have the same connectors, you just remove a plate on the bottom of the laptop and take the old one out, stick the new one in its place and put the plate back on.  Takes less than 5 minutes.  With a Terabyte drive, you could divide it into three partitions equally sized at about 315GB, have a good swap partition with the remainder, and have three separate, identical or different, operating systems in place.  Gives you lots of room to play around or grow in.


How to cut up a video into uniform parts using a command line tool

Use the segment muxer in ffmpeg:

ffmpeg -i input -map 0 -f segment -segment_time 60 -reset_timestamps 1 -c copy output_%03d.mp4

Using -c copy enables stream copy mode. The segment muxer will cut on keyframes when stream copying, so the segments may not have an exact duration of 60 seconds. If you need exactly 60 seconds per segment then you will need to re-encode by removing -c copy and setting an appropriate GOP size to fit your segment time constraint. For example, a one second GOP for a 25 framerate output is -g 25 (default is 250).


How do I reinstall ubuntu 12.10 on my Macbook Pro 11,3 to avoid problems

First, if you really meant Ubuntu 12.10, that version reaches end-of-life (EOL) status next month, according to this site. I therefore recommend updating to 13.10, or perhaps even 14.04 LTS (which is in beta-2 now, and will reach final release status next month).

  The current issues I am experiencing are: 1) rEFIt shows a confusing population of "bootable" images despite there being one Mac and one linux partition

That's not much to go on. rEFIt shows a description when you highlight any given item, and those descriptions may provide clues about what each entry does. With that information, as well as observations of what happens when you select each entry, you may be able to figure out why there are so many entries and what you can do to remove unwanted ones. (Typically, removing an EFI boot manager file will remove its entry. If they're BIOS-mode entries and you're not booting anything in BIOS mode, you can disable BIOS-mode booting in rEFInd, but I believe not in rEFIt.)

  3) when using ubuntu, sometimes the screen will dim and all interaction fails for ten or so seconds, then the screen will brighten again and interaction returns (BIOS issue?)

In recent versions of Ubuntu, this can signal that the system is under heavy load -- a program may be chewing up a lot of CPU time, for instance. I'm not sure with what version this feature was introduced, though, so I'm not sure if it was present in 12.10.

  I attempted to remove the tiny partition at the end of disk multiple times, but it always returned (is this the HFS+ partition?).

Partitions vary from one computer to another, so your description is inadequate. If you want to discuss your partitioning scheme, include the output of a partitioning tool, such as gdisk, parted, or GParted. Sometimes the output of other commands can be useful, too, such as df -h or sudo blkid.

  What must work when I finish the reinstall in both OSX and ubuntu: 1) wireless network; 2) speakers; 3) camera; 4) gpgpu; 5) thunderbolt monitor and network support; 6) suspend/resume with all devices restored; 7) with ubuntu running, shut lid and have exterior apple icon light turn off;

Each of these is an independent issue. You should ask separate questions about each one -- but be sure to search the site for similar questions first. I suspect that some of them have already been answered.

  Here is my intended course of action: 1) destroy all partitions except for the tiny first and last ones and the Mac partition

Without detailed information about your current partitions, I can't comment on the wisdom of that course of action.

  But here are web-sites that conflict from which I need to choose instructions

Conflicting advice on different Web sites is the nature of the Internet. I'm the author of some of the pages you referenced (the ones under http://www.rodsbooks.com), so obviously I think they provide useful and accurate information. Note that just because two sites give conflicting advice doesn't mean that either of them is necessarily wrong; it's often possible to achieve a given goal in multiple ways, or one procedure might be optimal for one situation and another might work better for another situation.

  What is the exact sequence of steps to partition, EFI, and install ubuntu such that I avoid all those little gotchas that plagued me for the last few weeks?

I'm afraid that I can't answer that question, and in fact, nobody can. You haven't really said what "little gotchas" are bothering you (unless perhaps you're referring to that list of unrelated things you said "must work" -- but those are post-installation issues that don't relate to installation procedures). What's more, you've presented insufficient detail about your current setup. To top it off, whether you know it or not, you're asking for a personalized set of installation instructions for your computer. Macs in particular tend to be quirky; what works on one model fails on the next. Thus, unless somebody has installed precisely the OSes you want to install on your exact model with your exact goals, any step-by-step solutions are likely to fall down somewhere along the line.

I recommend you look over the sites to which you linked and do one (or both) of two things:

Come back with more specific questions, such as "will such-and-such a partitioning plan work?" (with detailed existing partitioning information presented) or "will such-and-such a set of boot loaders work?"
Try to perform an installation and come back with questions about specific problems you encounter.

I'm sorry if this isn't what you want to hear, but I'm afraid your questions are rather vague and open-ended.


The Launchpad page for one of the binary versions says that its status is Deleted, and the LP page for the source package only shows a publishing history up to 14.04. The package is no longer available for 14.10.


12.10 has Python 3.2.3 default, does this impact existing python tools?

No, this does not impact existing Python2 tools.

12.10 has Python3 installed by default, but that doesn't mean it's the "default Python". Python2 is at this point also installed by default (AFAIK), and importantly, /usr/bin/python is still a symlink to python2.7.

The transition to Python3 has been done such that it has zero effect on existing Python2 applications. 2 and 3 are parallel installable, and install their site packages in different locations.

If you want your app to use Python3, you'll have explicitly change the shebang to:

#!/usr/bin/python3

See Python 3 on Ubuntu for more details.


Any way to skip the huge apt-cache-update everytime a repository is added?

If you don't want to get update from all the repositories at a time, uncheck them in software sources, and check them again when you really want to update from them.
https://askubuntu.com/a/27373/27559


How to login to Ubuntu 13.10 Automatically?

Encrypt my home folder

  This option provides you with an added layer of security. Your home
  folder is where your personal ﬁles are stored.

  By selecting this option, Ubuntu will automatically enable encryption
  on your home folder, meaning that ﬁles and folders must be decrypted
  using your password before they can be accessed.

  Therefore if someone had physical access to your hard drive (for
  example, if your computer was stolen and the hard drive removed), they
  would not be able to see your ﬁles without knowing your password.

If you choose this option, be careful not to enable automatic login at a later date.
It will cause complications with your encrypted home folder, and will potentially
lock you out of important ﬁles.

See Page 18 of the Ubuntu Manual.


Opening new windows of VSCode switches workspace

This seems to be an actual bug in vscode that will be fixed in next release: https://github.com/microsoft/vscode/issues/106727


How do you view all of the banned IP's for Ubuntu 12.04 via the command line?

short version:

list all currently blocked ips:

fail2ban-client status | grep "Jail list:" | sed "s/ //g" | awk '{split($2,a,",");for(i in a) system("fail2ban-client status " a[i])}' | grep "Status\|IP list"

unban an ip:

fail2ban-client set postfix-mail unbanip 111.222.333.444

long version:

if you are looking for the "official" way to do that, there is a command line client for fail2ban https://www.fail2ban.org/wiki/index.php/Commands :

~ # fail2ban-client status
Status
|- Number of jail:      8
`- Jail list:           roundcube, sshd, sogo, postfix-sasl, postfix-mail, dovecot, ssh, sshd-ddos

then you can run

~ # fail2ban-client status roundcube

Status for the jail: roundcube
|- filter
|  |- File list:        /var/log/mail.log
|  |- Currently failed: 0
|  `- Total failed:     12
`- action
   |- Currently banned: 1
   |  `- IP list:       111.222.333.444
   `- Total banned:     1

or you can use my command, which iterates over all existing jails:

fail2ban-client status | grep "Jail list:" | sed "s/ //g" | awk '{split($2,a,",");for(i in a) system("fail2ban-client status " a[i])}' | grep "Status\|IP list"

which outputs:

Status for the jail: roundcube
   |  `- IP list:
Status for the jail: sshd
   |  `- IP list:
Status for the jail: sogo
   |  `- IP list:
Status for the jail: postfix-sasl
   |  `- IP list:
Status for the jail: postfix-mail
   |  `- IP list:
Status for the jail: dovecot
   |  `- IP list:
Status for the jail: ssh
   |  `- IP list:
Status for the jail: sshd-ddos
   |  `- IP list:


Does UEFI system recognizes MBR boot code?

The live media have both the MBR boot record, and UEFI boot capability -- the entire filesystem meets the EFI criteria for a EFI partition, the /EFI directory is the location for the UEFI bootloaders. How your machine is set up in the UEFI settings determines how the live media boots (legacy or UEFI) and how the install is made.

If the bootloaders under /EFI were missing, the MBR boot in legacy mode would still work, but no UEFI boot would be possible.  Now that's the ISO's filesystem, one big filesystem -- but some tools used to burn the ISO information to media might create additional partitions, and do might even do bad things like copy parts of the running system onto the newly created install media (causing problems when version mismatches occur).  The simple dd byte copy produces a live media just like the ISO.


How to create your own window gui like notification

Use xmessage. Just run the following in a terminal emulator (Ctrl+Alt+T):

xmessage here_comes_your_message

A notification window will pop up.


Your PC is not a DNS server, but it does keep a cache for previous queries. You usually have the IP of your DNS server pushed to you by your ISP (Internet Service Provider) when you connect via the datacard along with your IP address, default gateway and other network info. This is done with the DHCP protocol usually.

You can see what DNS you have configured by opening a terminal (Ctrl+Alt+T) and typing

  cat /etc/resolv.conf

if you want to see your default gateway you can view it by using

  cat /etc/network/interfaces

or by using

  ip route show

and look for the line starting with default


Switching between workspaces doesn't work - how to fix it?

Check using CompizConfig Settings Manager (install if you dont have it) the number of virtual desktops assigned (horizontal and vertical size):

Then have a look at System Settings>Keyboard>Shortcuts>Navigation and check your assigned keyboard shortcuts there:

Try assigning new keys for them, if that works try reverting the original keyboard shortcuts.


Unstable after moving headless server from usb-hdd to usb pendrive

Your pendrive is just flaky.  I don't have a specific recommendation for brand, aside from "spend a little more" and specifically look for one advertising fast USB2.0 or (better) USB3.0 access.  You generally get what you pay for, and cheap pendrives aren't really designed or tested for long-term connection with heavy usage.


What is the battery life of Lenovo t431s with Ubuntu?

My T431s on Ubuntu 13.04 usually lasts about 5-6 hours under normal load. (Wifi up, full brightness, doing actual work.)


Ctrl+Shift+V doesn't paste to terminal now?

How to edit your keyboard shortcuts:

Open a terminal
Click edit in the menu bar
Click Keyboard shortcuts in the menu

I hope this helps


Change Folder & File Permissions for all Subdirectories

I'm not aware of any way you can do this in nautilus but you can do it from a command line

For example I have the following files in  a directory

$ ls -la
total 400
drwxrwxr-x  2 warren warren   4096 Jun 22 17:49 .
drwxr-xr-x 74 warren warren  20480 Sep 21 13:05 ..
-rwxrwxr-x  1 root   root      199 Jun 22 18:02 ex1.py
-rwxrwxr-x  1 root   root       43 Jun 22 17:45 hello.py
-rw-rw-r--  1 root   root    27792 May 27 15:18 img.txt
-rw-rw-r--  1 root   root   323944 May 27 15:16 img.xcf
-rwxrwxr-x  1 root   root     3178 Jun  7 22:11 snake.py
-rw-rw-r--  1 root   root     3182 Jun  4 20:20 snake.py~
-rwxrwxr-x  1 root   root     7242 May 27 09:26 test
-rw-rw-r--  1 root   root      821 May 27 09:25 test.c

You can change all these to be owned by the user warren with:

sudo chown -R warren:warren *

As shown

warren@dell:~/test$ sudo chown warren:warren *
warren@dell:~/test$ ls -la
total 400
drwxrwxr-x  2 warren warren   4096 Jun 22 17:49 .
drwxr-xr-x 74 warren warren  20480 Sep 21 13:05 ..
-rwxrwxr-x  1 warren warren    199 Jun 22 18:02 ex1.py
-rwxrwxr-x  1 warren warren     43 Jun 22 17:45 hello.py
-rw-rw-r--  1 warren warren  27792 May 27 15:18 img.txt
-rw-rw-r--  1 warren warren 323944 May 27 15:16 img.xcf
-rwxrwxr-x  1 warren warren   3178 Jun  7 22:11 snake.py
-rw-rw-r--  1 warren warren   3182 Jun  4 20:20 snake.py~
-rwxrwxr-x  1 warren warren   7242 May 27 09:26 test
-rw-rw-r--  1 warren warren    821 May 27 09:25 test.c

the -R option means recursive; i.e. including sub-directories for more information enter man chown in a terminal.


How do I change the hostname on an Ubuntu Core system?

Since Ubuntu 13.10 you should use hostnamectl:

sudo hostnamectl set-hostname 'new-hostname'

The advantages are numerous including one command to make all those changes reducing problems with typos or sudo (you can easily break sudo if you make mistakes) and no reboot is required.

See also How do I change the computer name?


Which NVIDIA driver is suitable for GeForce GTX 660M?

I finally figured it out. I just had to run sudo apt-get update and sudo apt-get upgrade. That's all it took. Now I'm runnin the NVIDIA-367 drivers and CUDA 8. I realise now that the solution was exceedingly simple, but I am new to Ubuntu and it took me some time to figure it out. If there's someone else facing this problem, hope this post helps!


Is there open source elearning software that works easily on Ubuntu?

The best I ran in to would be ...

  Wink

Wink is a Tutorial and Presentation creation software, primarily aimed at creating tutorials on how to use software (like a tutor for MS-Word/Excel etc). Using Wink you can capture screenshots, add explanations boxes, buttons, titles etc and generate a highly effective tutorial for your users.

Features:

Freeware: Distributed as freeware for business or personal use. However if you want to redistribute Wink, you need to get permission from the author.
Cross-Platform: Available for all flavours of Windows and various versions of Linux (x86 only).
Audio: Record voice as you create the tutorial for explaining better.
Input formats: Capture screenshots from your PC, or use images in BMP/JPG/PNG/TIFF/GIF formats.
Output formats: Macromedia Flash, Standalone EXE, PDF, PostScript, HTML or any of the above image formats. Use Flash/html for the web, EXE for distributing to PC users and PDF for printable manuals.
Multilingual support: Works in English, French, German, Italian, Danish, Spanish, Serbian, Japanese, Brazilian Portuguese and Simplified/Traditional Chinese.
Smart Capture Tools: Capture screenshots automatically as you use your PC, based on mouse and keyboard input (great time saver and generates professional captures).
Performance/Quality: Creates highly compressed Flash presentations (few kbs to few hundreds of kbs, much smaller than competing commercial products) ideal for using on the web.

There are 2 others but they seem to lack features Wink does have: Kazam and Tibesti.

It is not in the repositories though so you need to install it from source. I only found a how-to on installing on x64 but looks like it is pretty straightforward.


I found this Ubuntu Forum post. Looks like libdvdcss2 got uninstalled somehow?? Anyway, running

sudo /usr/share/doc/libdvdread4/install-css.sh

seems to have things working again.


Ubuntu server 18.04 (bionic) network settings broken after power cycle

I investigated the issue on my own -- it seems that a Canonical Livepatch failed on my machine (I haven't found the root cause yet). When it failed, it had only partially applied updates to cloud-init, and while netplan was not installed, many network settings had been changed to assume it was. This left multiple network configurations in a partially migrated state. While I was able to restore some network connectivity by manually changing settings, the work involved with finding and configuring them was astronomical, and many changes were not persistent without a boot script. The most reasonable solution I found was to reinstall the operating system and disable Canonical Livepatch.

If it is indeed a network configuration patch for 18.04 that caused this, @Canonical should remember that 18.04 is designated LTS -- the live patching should NOT under any circumstances apply updates that risk loss of network settings for LTS servers. If this is the case, it is extremely careless behavior. If anyone from Canonical reads this, I would appreciate any comment from someone with more knowledge of the Livepatch internals to confirm and assess root cause.


I am not sure if you are aware of it but Lubuntu 12.04 has reached its End of Life which means that you will no longer receive updates, patches, or security fixes.  The newest and only currently supported version of Lubuntu (14.04) has 0.9.8.8 installed.  Since Lubuntu 12.04 was not a LTS version I am not even sure that you can upgrade to Lubuntu 14.04.  Recommend that you do a fresh install after you back up all of your data.


Wifi driver problems in trusty tahir, back to windows?

apt-get update

 apt-get install linux-headers-$(uname -r)

 apt-get update

 apt-get install build-essential

 apt-get install git

 git clone https://github.com/lwfinger/rtl8188eu

 cd rtl8188eu

 make all

 make install

 insmod 8188eu.ko

 ifconfig #(check to see if your wireless wlan cards is now listed)

should get you going.

Since it giving you device busy, try this

 lsmod | grep 8188

if the result looks like “r8188eu 7990995 0″

 sudo modprobe -r r8188eu

then, you can (from the rtl8188eu directory)

 sudo insmod 8188eu.ko

Edit: This device works with Raspbian (Debian based) with no install needed, so I think there may already be a driver setup, but it may be outdated or just need to be removed and installed again using the git version.


Installing Firstclass missing dependency

Here one person had missed libqt3-mt package in 13.04:
Missing libqt3-mt in 13.04
Try to download that package from the link put there and install it.
Later, try again to install firstclass and to tell us.


ubuntu14.04 can not enter ubuntu when i choose 'ubuntu' in grub2 menu

Try boot-repair from live cd or live USB media.

Here are the instructions :
How to install the Boot-Repair tool in an Ubuntu live disc?

  Insert or connect the Ubuntu live media (DVD or USB).
  Find out how to boot your computer from removable media.

  Note that there is a difference between booting of older
  computers (BIOS/MBR) and newer ones designed for Windows 8 and later
  releases (UEFI/GPT).

  Reboot the computer from live media and choose Try Ubuntu when
  asked.

  Connect to the internet, then open a terminal with Ctrl+Alt+t, paste the following
  commands and run them by pressing Enter:

sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \
sudo apt-get update; \
sudo apt-get install -y boot-repair && boot-repair

    Note: You copy and run them all at once. If you want to run them individually just remove the trailing "; \".

  That's it, the Boot-Repair window will appear!


I just found pgcli (https://github.com/dbcli/pgcli) — a postgres client that does auto-completion and syntax highlighting. It looks awesome!

Quick Start

If you already know how to install python packages, then you can simply do:

$ pip install pgcli

or

$ brew install pgcli  # Only on OS X

If you don't know how to install python packages, please check the
detailed instructions.

Usage

$ pgcli [database_name]

or

$ pgcli postgresql://[user[:password]@][netloc][:port][/dbname]

Examples:

$ pgcli local_database

$ pgcli postgres://amjith:pa$$w0rd@example.com:5432/app_db

Source: https://github.com/dbcli/pgcli


How to use CTRL + ALT + W to print a question mark in a portuguese keyboard?

The standard for Linux keyboard is AltGr+W. But, if your prefer, could customize this shortcut in your keyboard:

Go to System Settings > Keyboard, Shortcuts;
Create a new Custom Shortcut (chose it and press +);
Click on word "Disabled" so it will turn to "New Accelerator...";
Press Ctrl+Alt+W.
Close this window

so:


You need to install network-manager-vpnc, then configure it through network manager.

sudo apt-get install network-manager-vpnc

That will install vpnc, network-manager-vpnc and network-manager-vpnc-gnome.

Now LEFT click on your network manager applet :

And choose "Configure VPN...", then click "Add" and drop the menu to "Cisco Compatible VPN".

And enter your details.  To start your VPN, just follow the steps again, but instead of "Configure VPN", you'll click on the entry you created.


this could be because you dont have the correct fonts installed in

~/.wine/drive_c/windows/fonts

Try to find out what fonts the game uses and install them in the mentioned directory.


Linux Driver for TRENDnet TEW-808UBM Micro AC1200 Wireless USB Adapter 20f4:808a

The following solution was originally posted as part of the question by the question's author:

SOLVED:  RTL8822BU seems to be more appropriate for this micro USB, see line 250 at https://github.com/EntropicEffect/rtl8822bu/blob/master/os_dep/linux/usb_intf.c.
I tested the EntropicEffect rtl8822bu driver using DKSM, and it WORKS. So, the chip is probably RTL8822BU, and not RTL8812BU as suggested by:
https://deviwiki.com/wiki/TRENDnet_TEW-808UBM
https://wikidevi.wi-cat.ru/TRENDnet_TEW-808UBM


Move home directory to another directory in Ubuntu 12.04

sudo usermod -d /home/users -m

should move all files form your old home (/home/) to your new home (/home/users/) and update all files that need to be updated (like /etc/passwd).


How to disable the brightness slider in the Gnome 3 aggregate menu?

If you can live without the power indicator you may try the following workaround.

Install a GNOME shell extension called Extend Panel Menu. This would "move the Power/Network/Volume/User/Date/Notifications menus to the status area" from the aggregate menu. The brightness control slider should be in the power indicator.

Then from the extension's preferences disable the power indicator (and other unnecessary indicators).


You hibernation does not work because you have a wrong UUID in your /etc/initramfs-tools/conf.d/resume file.

Run in terminal

echo "RESUME=UUID=60a90294-7412-47fc-99e3-f2c69a9b1db0" | sudo tee /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -u -k all


I want to back up my Ubuntu so that I can restore it like a new install OS

Remastersys is a tool which is able to create a LiveCD/Installation Media of your current system. It is not maintained anymore, but it still works for 14.04

sudo add-apt-repository ppa:mutse-young/remastersys
sudo apt-get update
sudo apt-get install remastersys-gtk


Ctrl + Alt + F1 through F12 are mapped for switching between virtual consoles. Your graphical display is usually mapped to vt7 or vt8, so F7 or F8.

Ctrl + Alt + BkSp aborts your graphical server and kills all graphical processes.

Ctrl + Alt + - and + switch to a smaller or higher screen resolution, respectively.

Ctrl + Alt + Esc runs xkill by default. The next window you click is killed.

There are several others, but I can't recall them.

If you want to map +/- to something, I'd suggest using the Windows key as a modifier, if you have one. It's treated as a "Super" Meta-key, and doesn't normally have any mappings at all.


how can I use one specific version of python for everything in ubuntu 18.04?

Never change the system wide links to python to something else. This will break the dpkg package system! See also this post.

Change the python and python3 links back to the system defaults and dpkg/apt-get will start to work again.

$ sudo rm /usr/bin/python
$ sudo ln -s /usr/bin/python2.7 /usr/bin/python
$ sudo rm /usr/bin/python3
$ sudo ln -s /usr/bin/python3.6 /usr/bin/python3


How to record any internal sound in and out using Ubuntu and Audacity

To define the recording source for any recording application we may install pavucontrol.

As soon as we record any audio stream the name of the recording application and the source from where it records will be shown in the Recording tab. We then may be able to change the source to Monitor of <your soundcard> to record the output of our soundcard:

We may have to choose another audio profile in addition. This can be done from the "Configuration"-tab of pavucontrol, e.g. a "Duplex" sound profile for output of the microphone to our local audio sink:


No EFI system partition configured, BUT I already have it - Lubuntu installation

The solution was very easy: I only had to edit the mount point of the already-existing EFI partition (the first one) to '/boot/efi' (without even formatting it) through the Lubuntu installer.
Then the installation proceeded well and smoothly, with dual-boot working fine.


Move files to folder based on parts of filename

Since you didn't provide any script to help out, use this line to create the folder names from the file list:

Create variable ( or read from filenames list file): filename="[SubsHorrible] name of show - 00 [1080p].mkv"
Then get the part needed: echo ${filename" "-*}
Result: [SubsHorrible] name of show, to create the folder do echo ${filename%%" "-*} | xargs -d '\n' mkdir

Explanation: ${filename%" "-*}: from the back of the filename remove all till the point " "-, then return everything else.

For the sample given:

[SubsHorrible] name of show - 00 [1080p].mkv
[SubsHorrible] name of show - name2 of show - 00 [1080p].mkv
[SubsHorrible] name of show - 000 [1080p].mkv

Returns:

[SubsHorrible] name of show
[SubsHorrible] name of show - name2 of show
[SubsHorrible] name of show

Use this simple script to create the folders:

 #!/usr/bin/env bash

while IFS= read -r var
do
    mkdir "${var%" "-*}"
done < "$1"

Usage:

./createfolder.sh list

In-cooperate it into your larger script.

See this for more help:

https://www.cyberciti.biz/tips/bash-shell-parameter-substitution-2.html


Can't install any packages on Natty Server

I'm add into /etc/apt/sources.list

# Required
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse

# Optional
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse

then apply sudo apt-get -y update
This solve my problem


Window Shuffler
Disclaimer: I am the author.
Natively on Ubuntu Budgie, but if you don't mind setting up manually, it should work on all window managers that support the dependencies (not wayland): WindowShuffler

It can be used both via GUI as well as via (basic) keyboard support.

Download & instructions: https://github.com/UbuntuBudgie/window-shuffler.
Overview of its features: https://www.youtube.com/watch?v=Ii4n8H4XEzc


I recommend you to keep using firefox as it works perfectly, Chromium is not Google Chrome and although it is not branded by google it has the same exact source code as Google Chrome so it won't be helpful.

PS: if you want a stable webkit browser (same as Google Chrome and Apple Safari) for Linux I would go for:

http://midori-browser.org/download/ubuntu/


Black Screen between Scriptsetup and Login (Ubuntu 16.04.1)

So I changed the driver to nvidia version 361.42, and added directions in nvidia settings to the registry key files via the terminal...I found directions in another question entry. Just turned my computer off and back on, and it appears to be working fine! Hopefully, this fixed the problem permanently. I'd really like to get back to worrying about coding instead so.


Is there an alternative to installing Ruby Version Manager (RVM) from repository in Ubuntu Software Center?

Well, I went ahead and installed ruby-rvm from ubuntu software center, and I can now advise STRONGLY against doing this.

RVM is supposed to install to the home directory (i.e. home/stephen), but the canonical hosted version installs to /usr, which means you need to sudo before you can install gems and so on.

I have removed ruby-rvm using apt, but am now unable to install RVM the proper way (i.e. using curl from command line) and I get an error stating that I need root privileges to write anything to /usr. What a joke, obviously the hosted version that I have removed, has set some kind of flag which now instructs all future rvm commands to work out of usr/share/ruby-rvm.

I have actually removed Ubuntu 11.10 altogether now because I just can't get used to this Unity crap. Trying Lubuntu out instead for now.


Actually, the System Monitor itself is a rather graphics intensive application, which makes your claim of not doing anything slightly odd. Try running 'top' instead, but ultimately, xorg will probably use less cpu if compiz is off.


How install Ubuntu on old Compaq notebook?

I would not try and install Ubuntu on that machine - unless you want to upgrade the RAM.

I would install Xubuntu. Though you could try Lubuntu - it uses less resources than Xubuntu.

Yes you can use a USB to install with assuming that the notebook will boot from it, you can use unetbootin to do that.

If you do not need the XP on the notebook - when you boot the installer then use the Whole Disk option.

http://unetbootin.sourceforge.net/

http://xubuntu.org/getxubuntu/

https://help.ubuntu.com/community/Lubuntu/GetLubuntu


Is there any way to know what happens when a Ubuntu Installation freeze?

Review the logs generated by the Ubiquity installer, such as
/var/log/syslog
/var/log/partman
/var/log/installer


What is the /usr/share/initramfs-tools/scripts/casper-functions for?

I appear to have done a successful workaround with the commands:

cd /
ln -s /usr/share/initramfs-tools/scripts


The problem you're having is that gnome-app-install isn't a real package, but a virtual package:

$ apt-cache show gnome-app-install
N: Can't select versions from package 'gnome-app-install' as it is purely virtual
N: No packages found

that is provided by software-center:

$ apt-cache show software-center
Package: software-center
Priority: optional
Section: gnome
...
Replaces: gnome-app-install, software-store
Provides: gnome-app-install, software-store

In fact, there isn't any other package that provides gnome-app-install:

$ aptitude search '?provides(gnome-app-install)'
i   software-center                 - Utility for browsing, installing, and remo

Hence, I'd say that there isn't any other official alternative that provides that virtual package, so I'd encourage you to report problems in the launchpad project page to help them get fixed in future releases.

Anyway, if you're still unhappy with software-center, I suggest to give a try to synaptic.


Accidentally wiped my hard drive during installation

As far as I know the Ubuntu installer has issues detecting a Windows installation on an EFI based machine (Windows 8 requires EFI, pretty sure the Yoga series is Win8 only?), therefore it doesn't give you the "Install alongside Windows" option any more and you have to do the whole partitions it should use etc. thing manually. If you don't Ubuntu will wipe your drive and create a new partition table.

Long story short:

You could try one of these:

http://www.howtoforge.com/data_recovery_with_testdisk

http://www.tldp.org/HOWTO/Partition/recovering.html

How to recover a deleted NTFS partition with data

But I'm afraid you'll have to pay the 70 bucks.. Something similar happened to me (Lenovo G500) and I couldn't get anything back (hate Win8 anyways and still have an old Win7 DVD lying around, so..)


I can't boot into ubuntu after installation from CD!

with live CD put in terminal

$sudo grub-install --root-directory=/mnt /dev/sdX

$sudo update-grub

$sudo reboot

Where sdaX means, your hard disk which is booting. If only physical disk is there it should be sda


Dell XPS 15 L521x miniDisplay to VGA detects monitor but does not work

I have the same laptop with 3 monitors attached and working. The problem comes with the nvidia drivers. All the 3 monitors (2 external + the internal one) working only when I'm using the nouveau drivers.

Upgrading from 14.04 to 16.04 doesn't effect that behaviour, 3 monotors still working with a minor cursor flickering that you can get used to it.

Howerver updating to 16.04.2 caused me some issues on the screen attached on the mini display port since it seems that the output isn't hardware accelerated. I've to figure it out.


Sudo username is different other than root user

The behavior of sudo su - is as follows:

This will open a login shell, so /etc/profile, .profile and .bashrc are loaded and this will take the user to the root's home directory and will use the root's environment.

As discussed in the question's comments, the other approach to use a root shell is to run sudo -i. The behavior of sudo -i is as follows:

It is nearly the same as sudo su - The -i (simulate initial login) option runs the shell specified by the password database entry of the target user as a login shell. This means that login-specific resource files such as .profile, .bashrc or .login will be read and executed by the shell.

The reason sudo -i is preferred over sudo su - is the command will log as the user used, not as root, enabling easy auditing of the commands (who ran what) in a multi-user environment.

On the other part of the question (why is the prompt showing as a different user) it is unknown for the time being why that behavior was shown in the first place. Since the environment had some other auditing software installed (WebADM to be specific) something was done by that user. That behavior was not reproducible and was more of an edge case.


Geany compiler , c programming, Ubuntu 14.04, can't show program output

Open your "hello world" program in Geany.
From the Geany menu select Build -> Build. A new executable file will be created in the same directory as your source code.
From the Geany menu select Build -> Execute. A new window with the title Terminal will appear with the "hello world" program output.


How to create a complete backup ISO to an external hard drive?

Yes,

of means output file.
The ~ in front of /disk1.img puts it into your home direcory.

Change the command to  ...

dd if=/dev/sda of=/media/{mountpoint}/disk1.img

where {mountpoint} needs to be change to the name you gave the external disc and disc sda1 will be copied to your external disc into 1 file called disk1.img.

If you want someone to tell you what the mountpoint is  then please add into your question the result of ls -l /media if a disc is shown on your desktop and/or include the results of more /etc/fstab if the disc is mounted by the system.


How can I determine what a shortcut key combination does in Ubuntu 15.10?

The list of all the keyboard shortcuts and their brief explanation can be accessed through Settings -> Keyboard -> Shortcuts.

Alternatively , the command line way would be

gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys  | less

Also you might find useful Ubuntu wiki's Keyboard Shortcuts page

As for what handles the shortcuts , that's gnome-settings daemon (in case of GNOME shell) or unity-settings-daemon (in case of unity). The two are related, keybindings are shared, though not entirely.


error while installing mesa in command 'make linux-x86'

The error is pretty obvious:

make[3]: flex: Command not found

Mesa has a build-dependency on flex which can be installed with:

sudo apt-get install flex

To install all build dependencies for Mesa at once, run:

sudo apt-get build-dep mesa


Volume icon missing after removing (and re-installing) pulseaudio

converted comment to answer

Some pulse-audio issues can be resolved by resetting your pulseaudio configuration file then logging out and logging in to regenerate it automatically.

mv ~/.pulse ~/.pulse_backup

From your comment - this is exactly the case for your situation :)


Unable to use graphical interface after logging back into Ubuntu 18.04

I cannot tell you why that's happening but I can suggest some things that can help you find out.  You can open a console and look at log files by pressing Ctrl-Alt-F2 then logging in.  Look at the system log with this command:

less /var/log/syslog

You can skip to the bottom of the file (to view the most recent entries) by pressing shift-g.

You can also look at the Xorg log which might contain useful information:

less /var/log/Xorg.0.log

And query the systemd journal:

sudo journalctl -xe

Instead of rebooting you can also restart the display manager which will end the current graphical session and enable you to log in again:

sudo systemctl restart gdm

This is assuming you're using Gnome.  If you're suing KDE change gdm to sddm.


Switching to UEFI Boot without fresh installation or boot repair tool

You need to install an EFI boot loader. There are several ways to do this:

GRUB 2 is the default Ubuntu boot loader.

I know you said you don't want to use it, but Boot Repair is the easiest way to install GRUB 2 in your situation.
You can do it manually, but I don't have a URL handy for step-by-step instructions on doing this.

My rEFInd boot manager can be installed by first using the CD-R or USB flash drive version to boot into the main Ubuntu installation and then installing the PPA or Debian package.
Several other EFI boot loaders are available; see my page on the subject for a rundown. Aside from GRUB 2 and rEFInd, these all require manual configuration and maintenance whenever you update your kernel. (Note that automatic kernel updates come out roughly once every couple of weeks.)

Overall, the two easiest approaches are to use Boot Repair to install GRUB 2 or to install rEFInd.


Manually installing Ubuntu 12.10 with LVM

The alternate installer has the ability to set up and install to LVM, and is the supported way of doing so. You can install the lvm2 package on an existing system, or the desktop livecd and manually set it up, and then install to it. This is what I will cover. (Ubuntu 12.10 has since introduced LVM support from the installation live CD.)

First, you need a Physical Volume. Typically you start with a hard disk, and create an LVM type partition on it. You can create one with gparted or fdisk, and usually only want one partition to use the whole disk, since LVM will handle subdividing it into Logical Volumes. In gparted, you need to check the lvm flag when creating the partition, and with fdisk, tag the type with code 8e.

Once you have your LVM partition, you need to initialize it as a Physical Volume. Assuming this partition is /dev/sda1:

sudo pvcreate /dev/sda1

This writes the LVM header to the partition, which identifies it as a Physical Volume, and sets up a small area to hold the metadata describing everything about the Volume Group, and the the rest of the partition as unused Physical Extents. After that, you need to create a Volume Group named foo:

sudo vgcreate foo /dev/sda1

Now you have a Volume Group named foo. I suggest you change foo to a name meaningful to you. foo contains only one Physical Volume. Now you want to create a Logical Volume from some of the free space in foo:

sudo lvcreate -n bar -L 5g foo

This creates a Logical Volume named bar in Volume Group foo using 5 GB of space. If you are installing, you probably want to create a Logical Volume like this to use as a root filesystem, and one for swap, and maybe one for /home. I currently have a Logical Volume for a Lucid install, and one for a Maverick install, so that is what I named those volumes. You can find the block device for this Logical Volume in '/dev/foo/bar' or 'dev/mapper/foo-bar'.

You might also want to try the lvs and pvs commands, which list the Logical Volumes and Physical Volumes respectively, and their more detailed variants; lvdisplay and pvdisplay.

If you are doing this from the desktop livecd, once you have created your Logical Volumes from the terminal, you can run the installer, and use manual partitioning to select how to use each Logical Volume, and then install.


freetuxtv installed in 14.04 is not working

FreeTuxTV is not working with VLC version 2.x. You can however try to install an old version of vlc 1.x.


Run xscreensaver with gnome-screensaver lock screen

On 12.04 you can install both xscreensaver and keep default gnome-screensaver, together, despite the "warnings" about how xscreensaver won't run unless you stop gnome-screensaver (which aren't true).

If you have, in "brightness and lock" settings under system settings, the screen set to "require my password when waking from suspend", then, if xscreensaver kicked in before the computer suspended (a question of timing), you will see xscreensaver running on wakeup, and you will have to unlock xscreensaver (the ugly xfce theme), and you will then also be greeted by another screen to unlock, the gnome-screensave theme. This happens for me even if I set xscreensaver to NOT lock the screen. That's the best I can figure. You can have xscreensaver's unlock screen or both, but you can't have just gnome-screensaver's unlock, if you want xscreensaver.

Edit: After resuming from suspend that would have happened after the lock screen timeout for gnome-screensaver AND with lock screen UNselected for xscreensaver, the gnome-screensaver unlock will quickly come up to interrupt the xscreensaver and I will only have to unlock gnome-screensaver's "pretty" screen, without being bothered by the xscreensaver lock dialog even once. Sometimes.


Acer often needs UEFI update and if SSD, firmware update to SSD.
If mok issues, often related to UEFI Secure Boot. If you have proprietary driver like nVidia, you have to set your own key to authorize the proprietary driver.
Often easier just to turn off UEFI Secure Boot.
Acer need you to set "trust" on ubuntu entry in UEFI, but Secure Boot has to be on to do that. Newer Acer seem to also need control + S to open settings for AHCI or other.
Issues are often common by brand as essentially same UEFI used. More difference between Intel & AMD based systems, but still by brand.
Newer posts say update to UEFI works, do not downgrade as per this answer.
Acer E5-573G, supervisor password & trust on ubuntu
Getting a black screen when installing or Live booting Ubuntu (any version) in my laptop
Acer Aspire 5 Model A515-54-5649  Intel Core i5-10210U Install Tutorial
https://ubuntuforums.org/showthread.php?t=2437702
Acer Aspire E15 will not dual boot, many details Trust settings in step 35
Acer Aspire E15 will not dual boot


Is it easy to install Apache web server on Ubuntu desktop?

Very very very very easy. Besides installing apache by itself with

sudo apt-get install apache2

you can do even more since you might want to install Perl for coding on the server and MySQL for database storage. So Ubuntu comes with a tool that can set up a complete LAMP server with 1 installation.

sudo apt-get install tasksel

and then run tasksel as superuser

sudo tasksel

Choose the option LAMP installation and you will get a pre-configured(!) Apache, MySQL and Perl installation. All you need is a root password for MySQL.

Shorter version:

sudo apt-get install lampserver^

No more need for "tasksel" since the ^ is now used to tell "apt-get" it is a "task" that needs to be installed.


Screen Freezes On Installation Ubuntu 18.10

For future reference: I followed the procedure used here and it worked perfectly. No installation type menu.

  In the BIOS RAID was on. I turn it to AHCI mode, then I booted up and it worked. It asked me if I wanted to turn on Legacy boot mode. I said yes, and it installed.


Turns out it was a faulty hardware. I've booted in Windows and the same thing was happening. I've installed Synapse, remapped the keys and apparently it's working. I had no idea these configurations were saved in the hardware, and openrazer or razercfg can't change it, only the official program can.


How do I get a Canon LBP 2900 printer working?

For 12.04
Don't worry, for printing you have to enter the following everytime after fresh boot:
sudo modprobe usblp
ls -l /dev/usb/lp0
sudo ccpd start

It works for me with the 32-bit driver installed according to the community documentation.


How do I display username on the GNOME menu bar on Ubuntu 19.10?

Workaround

This Extension should work even in Ubuntu 19.10 which uses Gnome Shell Version 3.34.X https://extensions.gnome.org/extension/1108/add-username-to-top-panel/

I have tested it. However I have made a script, taken source from above link..

open gedit.
copy paste below content and save the file in your home directory with name username.sh

Content:

#!/bin/bash

file1=$HOME/.local/share/gnome-shell/extensions/add-username-toppanel@brendaw.com/extension.js
file2=$HOME/.local/share/gnome-shell/extensions/add-username-toppanel@brendaw.com/metadata.json
file3=$HOME/.local/share/gnome-shell/extensions/add-username-toppanel@brendaw.com/stylesheet.css

install -Dv /dev/null $file1
install -Dv /dev/null $file2
install -Dv /dev/null $file3

echo 'const Clutter = imports.gi.Clutter;
const St = imports.gi.St;
const Main = imports.ui.main;
const GLib = imports.gi.GLib;

let label;
let aggregateMenu;
let children;

function init() {
  label = new St.Label({ text: GLib.get_real_name(), y_align: Clutter.ActorAlign.CENTER, style_class: "username-label" });
  aggregateMenu = Main.panel.statusArea["aggregateMenu"];
  powerIndicator = aggregateMenu._power.indicators;
}

function enable() {
  powerIndicator.add_child(label);
}

function disable() {
  powerIndicator.remove_child(label);
}
' >> $file1

echo '{
"name": "Add Username to Top Panel",
"description": "Simply add your username to topbar panel aggregate menu",
"uuid": "add-username-toppanel@brendaw.com",
"shell-version": ["3.34"]
}' >> $file2

echo ".username-label {
  margin-left: 7px;
  margin-right: 5px;
  vertical-align: middle;
}" >> $file3

gnome-extensions enable add-username-toppanel@brendaw.com

Open terminal and run the below

Command:

/bin/bash $HOME/username.sh

Refresh the gnome-shell with "Alt+F2 'r' Enter" Method.

When you want to delete the extension, run the below
Command:

rm -r $HOME/.local/share/gnome-shell/extensions/add-username-toppanel@brendaw.com

and refresh the gnome-shell with "Alt+F2 'r' Enter" Method


Other than the slight version number differences, the big difference is what version of python it requires.
Most current installations of Ubuntu have both python2 and python3 installed. Python2 is depreciated.
virtualbox-6.1

Uses python2.

Installs python-is-python2, and makes python2 the system default.

python-is-python2:

virtualbox

Uses python3.

Replaces python-is-python2 with python-is-python3, and makes python3 the system default.

python-is-python3:

Here, I'm installing the slightly older virtualbox and you can see what happens with the python-is-python* files.

So which virtualbox to install comes down to which version(s) of python that you have installed, and if you have both installed, which one you want as system default.


Why do configuration folders have *.d in their name

The .d denotes a directory containing configuration files, as opposed to a single config file.

This applies to other configuration directories under /etc such as /etc/apt.conf.d/, /etc/rc.d


Is Intel accessing my machine without permission through mei_mei module?

AMT includes basic security scheme[wikipedia] using either security certificate, pre-shared key or password.

You could do a simple check if AMT/MEI is enabled on your PC. Try to access your own pc with http://<your_pc_ip>:16992 from a browser on another pc on your LAN (beware of your firewall if there is any).

It looks like this:

The best info I have found so far is from the amt-howto man page from amtterm package. I encourage you to read it.

From what I understand, AMT must be enable in the BIOS/EFI (using CTRL-P to access the config page). It is only in that case that your PC is reachable via AMT.

If AMT is enabled, you can disable it in the BIOS/EFI. If it is and using SMB (or password scheme), there is a default password of admin. You can also change the default password to something of your liking to prevent remote access.


Your graphics card is not yet officially supported by Nvidia, and requires the bumblebee drivers for Linux. You can find more information on this post: Switchable laptop graphics issues on Ubuntu 12.04?


Can I upgrade from 12.10 to 13.04 via an ISO image?

Yes it is very possible and I would do it except my computer is too old.
I think you might be able to just download the ISO and put it on a USB via UNetBootin/Startup Disk Creator (the unpacked image is now too large for most CDs) and then boot the ISO from the USB drive.
I believe the startup disk will recognize you have a lower version installed and give you the option of upgrading from the disk.

Best of luck!


Reboot command is not working as expected in Ubuntu 14.04.3

sudo reboot and shutdown -r now from the terminal should work properly.
May be something wrong with your grub2 setup.
Try grub customizer

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

to fix your default O/S and other options.

If something wrong with your boot may be you need to try boot-repair from a Live USB/CD

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


Cannot display letters with accents after upgrade to ubuntu 11.10

This sounds like you have selected the wrong keyboard layout on your user account. To change this go to System Settings and select the Keyboard option.
Here select Layout Settings In this window click the + button in the bottom left to add a new keyboard layout

Select the language that relates to your keyboard (if you can preview the keyboard layout by clicking the Preview button to make sure it is the correct layout).

After you have selected the correct keyboard delete the incorrect keyboard from the list by highlighting it and clicking the - button.


This Might Help

http://www.thinkwiki.org/wiki/How_to_make_ACPI_work

see if it works and if it did dont forget to press Answered :P
enjoy :P


Try downloading it from the Official Virtual Box Website.

From your favorite terminal and text editor

Add the following line at the end of your /etc/apt/sources.list

sudo nano /etc/apt/sources.list

Go to the end of the file and add

deb http://download.virtualbox.org/virtualbox/debian trusty contrib

Save and exit, and run

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Then do

sudo apt-get update
sudo apt-get install virtualbox-4.3 dkms

And then, install the extension pack

wget http://download.virtualbox.org/virtualbox/4.3.20/Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack


Unable to set Google Chrome as default browser in Ubuntu 12.10

When I tried, choosing the default browser from System Settings worked for me. Here is the procedure.

  Go to System Setting > Details > Default Applications
  Choose Google Chrome from the dropdown for Web

If this is not working, then uninstall your chrome. Install it using Ubuntu Tweak and Try the procedure above. Ubuntu Tweak is a must have application.
To install Chrome using Ubuntu Tweak

  First install Ubuntu Tweak from Ubuntu Software Center
  Launch Ubuntu Tweak from Unity Dash
  Go to Apps Tab, you will get list available apps as follows

  Click on Google Chrome Stable.

  Check the checkbox for "Google Chrome Official Source" and Click on Install

When installation is over, launch chrome. At the first launch, it will ask if you want to set Chrome as default browser. You can choose Yes then otherwise you can set it from System Settings > Details > Default Applications > Web.


The repositories are stored in a file located at /etc/apt/sources.list.
You can edit that to suit your needs.


Set your user for automatic login in System Settings -> User Accounts -> Automatic Login (you will need to press the "unlock" button and enter your password before you can change the automatic login setting).

The command gnome-screensaver-command -l will cause the screen to be immediately locked, which can probably be added to your autostart items.

Using gedit (or other text editor of choice), create /home/USERNAME/.config/autostart/screen_lock.desktop with contents:

[Desktop Entry]
Type=Application
Name=Lock Screensaver
Exec=gnome-screensaver-command -l

And hopefully it will automatically login and then lock the screen.


Installation hangs at "Retrieving file 43 of 105"

I got stuck on retrieving file 43 of 105 as well, to get past it I simply turned off the wifi button on my laptop and cut off the internet, it then stopped downloading and proceeded with the installation :)


How do I enable navigator.bluetooth in Chrome on xubuntu 18.04.2?

Following the tutorial, when you launch Chrome, you still have to enable the
chrome://flags/#enable-experimental-web-platform-features
flag before the URL https://googlechrome.github.io/samples/web-bluetooth/discover-services-and-characteristics.html will work.  This worked on my plain vanilla Chrome setup on Ubuntu 18.04.


Ubuntu 18.04 screen always freezes with Google Meets

I had a similar problem with Ubuntu 18.04 and Mozilla Firefox. When I tried to share screen my computer got freezed while allowing access to window. I use Dark Reader add-on, and the problem somehow got resolved when I disabled it. Now I can enable it again and share screen whithout problems.


Unable to Install Ubuntu (Compiz Unresponsive I believe)

with a fresh build and install problems always occur. I found it most helpful to tackle them singularly! use single monitor plugged into board VGA or DVI socket. also my Asrocks motherboard only checks the board mounted USB on start up.and does NOT recognize a USB keyboard.


Type this in terminal:

sudo mount /dev/sdb1 /media/mysteamusb

Then go back to Steam ➜ Settings ➜ Downloads ➜ Steam Library Folders ➜ Add Library Folder ➜ Click media ➜ mysteamusb

And now it should be added and your games should be in your library.


How to stop mono-xsp4 running on terminal?

It says hit Return to stop server. I just did that and it stopped, it's the key we usually call the Enter key.


How to stop an application from using port 80

Here is what I suggest:

First find exactly which instance of python is using it:

sudo ss -ap sport == 80 | grep -Po "(?<=pid=).*(?=,)"

the above command gives you the PID of process which is listening on port "80".

Then use ps to find which parameters has been sent to python:

ps PID-FROM-ABOVE-COMMAND

eg:

ps 1462

then use same parameters with different port number to run your script/python on another port or change the script/parameters/config files if it was necessary.

Now you have two instance of same program listening on two different port, you can kill the old one and free up the "80" while another instance is listening on another port.


Can I use standard tools to get the full name of a process, when its name has embedded spaces?

All utilities get their information from /proc/$PID anyway, but there are (at least) three places in /proc/$PID that contain the name of the executable in some form, and they report different information.

The Name field in /proc/$PID/status (also available in a harder-to-parse form in /proc/$PID/stat). This is the name of the executable, but truncated to 15 characters. Since the kernel performs the truncation, no option to ps can help. That's what ps -o comm (or its synonym ps -o ucmd) shows.
The symbolic link /proc/$PID/exename point to the executable file. You can get its contents with readlink /proc/$PID/exename. Unlike the information reported by ps, only the user running the process has permission to read the link target.
The zeroth argument to the process, as chosen by the shell or other program that invoked it. By convention, shells choose the name of the executable as you typed it (with or without a full path). You can get all the arguments from ps with ps -o cmd (or its synonym ps -o command), but the arguments are separated by spaces so you can't reliably tell where the zeroth argument stops. You can read the arguments from /proc/cmdline, where they are separated by null character: </proc/$PID/cmdline awk -vRS='\0' '{print; exit;}' extracts the zeroth argument.

For completeness, let me mention that these names can change during the lifetime of the process, though most programs don't do it:

The process can change Name field of /proc/$PID/status by calling prctl with the PR_SET_NAME argument.
The executable file can be renamed or deleted. In simple cases, Linux keeps track of the new name (but edge cases might not work, e.g. if you make a hard link to the executable). If the file is deleted, the kernel adds (deleted) to the link target.
The zeroth argument to the process is read from process memory (it's argv[0] in C). The process can modify it freely.


How can I recover my data after replacing Windows with Ubuntu?

For recovering accidentally overwritten partitions with TestDisk  please follow these prcoedures:

Stop using the drive!
Boot Ubuntu live session ("Try Out Ubuntu") from a CD or USB-drive
Install Testdisk to the live session via the Software Center
follow this concise guide for recovery: TestDisk Step by Step

Optionally (but highly advisable) and if we had an external drive big enough to hold all of the faulty drive we can make a backup to recover data or partitions from an image. Make this image with the following command in a terminal:

sudo dd if=/dev/sdX of=/path/to/external_drive/backup.img

Replace sdX with the drive to recover. Since dd is an advanced and potentially harmful tool take extra care to not accidentally overwrite any drive you may still need.

In case you are unable to recover your partitions you may be able to recover single files by running PhotoRec wich comes with the TestDisk suite.

Just to have mentioned it: there are other "forensic" tools to help you recover lost partitions or files. See How to recover deleted files?.