wifi disconnected after reboot and install RT3290 better wifi driver xubuntu 16.04

I found a solution:

If the new driver was installed, must be uninstalled (run uninstall.sh)
Upgrade the kernel by executing the below command after connecting to internet over LAN or USB:

sudo apt-get update && sudo apt-get dist-upgrade -y

Install a new driver (run.sh)


After downloading node, where to place it correctly?

It is recommended to install nodejs through the setup script , your system will be able to install the security update through apt. As you can see the warning on the official website:

  Important security releases, please update now!

To install nodjs 8.x :

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs

To install nodjs 9.x :

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt install -y nodejs

To answer your question you can install the tarball as follow:

wget https://nodejs.org/dist/v8.9.3/node-v8.9.3-linux-x64.tar.xz
sudo mkdir /usr/lib/nodjs
sudo tar xvf node-v8.9.3-linux-x64.tar.xz -C /usr/lib/nodjs

It will extract the tarball to /usr/lib/nodjs . rename node-v8.9.3-linux-x64 to node:

sudo mv /usr/lib/nodjs/node-v8.9.3-linux-x64 /usr/lib/nodjs/node

Run the following command :

export NODEJS_HOME=/usr/lib/nodejs/node
export PATH=$NODEJS_HOME/bin:$PATH

You can add the above commands to your ~/.bashrc then run source ~/.bashrc.

Nodejs help: How to install Node.js via binary archive on Linux?


for cycle in folders modifing a number of a txt file with an incrementing number

If I understood correctly:

Folder names are Integers
h is a constant
k must be increased by (h * (folder - 1) )

Then this should work:

# Set constant variable h
h=1

cd /maindirectory/

# Loop directories
for d in *; do

    # open subshell
    (
    cd $d;

    # Get current value of k
    k=$(grep -Po "(?<=k\=)[0-9]+" file_name.txt);

    # Calculate new value of k
    new_k=$(bc<<<"$k+$h*($d-1)");

    # Update text file with new value of k
    sed -i -e "s/k=$k/k=$new_k/" file_name.txt;

    # Close subshell
    )
done


gedit R plugin not working after upgrade to 13.10

Problem solved by uninstalling the existing plugin using apt-get or Software Center and then installing the plugin from http://sourceforge.net/projects/rgedit/files/rgedit-0.8.0.2-Gtk3-Python3.tar.bz2/download into ~/.local/share/gedit.  Basically just download the archive, extract, and copy thie files into the plugin directory from the archive directory.


If you want to define a function, you can add the following lines to your ~/.bashrc:

acmcom(){
    echo g++ -g -O2 -std=gnu++14 -static "$1" -o "$2" > acmcom
}

Save the file, open a new terminal and you can now run:

acmcom  source.cpp output


What properties of a WiFi card can be changed to improved Transmitting & Receiving

TX power can be set by changing the CRDA to a country that has a higher power allowance. Like Bolivia:

sudo iw reg set BO

Notes

It's illegal to have unlicensed over-powered equipment in most countries.
It doesn't help that much. It'll only help if you're pushing the range to the limits.
Some hardware isn't designed for this level of power and so isn't sufficiently cooled. This could break your equipment.
It's also driver and hardware dependent. It won't work for everything.

For everything else connection quality is paramount. Assuming the driver is fairly solid, you want to be looking at physical things:

Can you use a directional antenna if you're talking about two static devices? What about DIY tin-can reflectors or cantennas? They work but they're only good for static point-to-point.
Can you fit better aerials to each end? Big juicy aerials.
Don't use wireless extension cables. You lose ~1dB per meter .
Position your router in the centre of where you want to use it. If that's not enough, there are fairly cheap wireless extenders now.
As you've just said in your comment, avoid other 2.4GHz devices. Phones, baby monitors, remote controlled planes... Essentially anything wireless.
Scan your house for other people's routers' signal. Find out what channels are busiest, Use the least popular one (allowing at least two channels either side).
Do you need wireless? If your key interests are static desktops, consider things like ethernet and powerline. However much hassle installing it is, you just can't beat wires for connection stability and throughput.

If the driver isn't any good (eg you get much slower than it says it should support), consider upgrading to a better chipset.

In a lot of laptops the wifi card is just a mini-pci board that can come flying out and find itself in the bin. You get get nice, supported, tri-channel (450mbps) Intel cards for a surprisingly low price.

You could fight to the death with the driver but the manufacturers clearly consider it junk if they're not going to support it. You should do the same.


Create a bootable ubuntu Usb stick on Mac

Ok just to let you know I found the mistake. In the sudo line I did not specify the exact name of the usb and for some reason it was asking me for password which was basically useless as I said above.

I repeated the process with no mistakes and finally created the usb boot stick.


Try this, changing the directory if necessary. A symbolic link might need to be created.

From the terminal: sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

Reload Apache: sudo /etc/init.d/apache2 reload


I can't use wifi or the internet on my machine. Ubuntu doesn't want to recognize my Rtl8812au wlan adapter

This Github
 Repository should work. There’s been quite a few issues with your WLAN adapter on Ubuntu, so its not going to work without some apparent tweaks. The best option I can think of is using the Github repo and hoping for the best. Since this is. A dual boot setup, I would clone the repository from your Windows computer, and then copy it onto a USB drive that can be accessed in Linux.


Increasing the SSD on Dell chromebook 3380

according to this site it can't be upgrade
https://www.mrmemory.co.uk/ssd-upgrades/dell/chromebook/13-3380


DPKG error, conflict while installing packages

This worked  for me:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb


The problem is the make command.

make VIMRUNTIMEDIR=/usr/share/vim/vim74

From the question, syntax.vim is actually located in /usr/local/share/vim/vim74 so you should instead be using the following.

make VIMRUNTIMEDIR=/usr/local/share/vim/vim74

In general, the VIMRUNTIMEDIR variable used by make should be consistent with the prefix variable used by the configure script.


How to get OpenCL to work on an AMD GPU with Ubuntu 16.04?

When clinfo shows "Number of platforms                               0",
you probably did not installed an ICD which is needed to use OpenCL-Products (like an Graphics card from AMD).

Use "sudo apt install mesa-opencl-icd" for a possible solution.


Install DJI Onboard SDK on ROS Kinetic and Ubuntu 16.04 LTS without apt-get

If you do trust the source of the package I recommend downloading the installer scripts from their official website and running them. The fact is that the developers provide the latest version of the required package which may or may not be available from apt-get repositories.


No (Qualcomm Atheros) Wi-Fi on Lenovo G50-45 after 16.04 install

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940 is probably what you are looking for.

Proposed fix from this link (step 1 is unnecessary for 16.04):

2) Get rid of the firmware folder for this card that's included with Ubuntu:

sudo rm -r /lib/firmware/ath10k/QCA6174/

3) Download the latest firmware:

wget https://github.com/kvalo/ath10k-firmware/archive/master.zip

4) Unzip the downloaded file. Inside the ath10k-firmware-master folder is a folder named QCA6174. Copy the QCA6174 folder to /lib/firmware/ath10k:

unzip master.zip
sudo cp -r ath10k-firmware-master/QCA6174/ /lib/firmware/ath10k/

5) Rename two of the firmware files like so:

cd /lib/firmware/ath10k/QCA6174/hw2.1/
sudo mv firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ-1 firmware-5.bin
cd /lib/firmware/ath10k/QCA6174/hw3.0/
sudo mv firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 firmware-4.bin

6) Reboot your computer. Run "lshw -C network" to see if your card is recognized. You can delete the files you downloaded earlier:

cd ~
rm master.zip
rm -r ath10k-firmware-master/

Verified to work on Ubuntu 16.04 LTS (with kernel 4.4.0-21-generic)

Last updated April 22, 2016


Output of make command FBReader open source - /usr/bin/ld: cannot find -llinebreak

From FBReader/README.build:

FBReader requires
** expat -- library for XML parsing. AFAIK, all popular destributions
includes package with name like 'expat-dev' or 'libexpat-dev'.
If you cannot find expat in your distribution, please visit
http://expat.sourceforge.net
** libz and libbz2 -- libraries for zip and bzip2 (de)compression
** UI library -- this depends on your target platform. For desktop,
Qt library, version 3.* or 4.*
OR
GTK+ library, version >= 2.4
should be installed
** liblinebreak (http://vimgadgets.cvs.sourceforge.net/vimgadgets/common/tools/linebreak/)
   library for line breaking in a Unicode sequence
** libfribidi -- for bidirectional text support
** lincurl, version >= 7.17 -- for network libraries integration
** libsqlite3

You need to install from source liblinebreak, download this tarball and type the following commands where you extracted the archive:

 sudo apt-get install automake
 ./bootstrap
 aclocal
 autoconf
 automake --add-missing
 ./configure
 make
 sudo make install


The error message says you are missing the files: radeonsi_dri.so and swrast_dri.so. Run the following commands to install those files:

sudo apt-get update
sudo apt-get install libgl1-mesa-dri libgl1-mesa-dri:i386

Please post any errors.


Virtual box : How to copy/paste text between a host running mac os and a ubuntu guest? (Shared clipboard doesn't work)

If your goal is simply to copy/paste text between host and guest, as an alternative to using the shared clipboard, you can achieve this by opening a port on the Virtual Machine & using ssh to login to the guest from a standard Mac OS terminal.
If you didn't install an ssh server on the guest you can add this like so from the (guest) command line
sudo apt-get update
sudo apt-get install ssh-server
sudo apt-get install openssh-server

If you are running ufw firewall you will need to allow ssh from the (guest) command line
sudo ufw allow ssh

You need to add a policy to the VM so that it will allow connections to the port, you can do this from the (host) command line:
VBoxManage modifyvm "<my_ubuntu_vm>" --natpf1 "<name_for_your_rule>,tcp,,<alternative_port_for_ssh_eg_2222>,,22"

Then you can ssh into the guest from the (host) command line
ssh -p <alternative_port_for_ssh_eg_2222> <your_username_on_the_vm>@127.0.0.1

The host command line remains under the control of Mac OS so you can now cut and paste as you would from any other terminal &/or application


Found it already.

In /usr/share/themes/theme/gtk-3.0/gtk-widgets.css:

GtkOrientable {
    background-color: @theme_bg_color;
}

Changed it to:

GtkOrientable {
    background-color: rgba(0, 0, 0, 0);
}

Now the gray block is gone and all the menu items are transparent, as it should be.


It's still the same shell. By opening a single quote, you expressed the intention to enter an argument that can optionally span multiple lines. The shell is giving you the opportunity to write however lines you want, until you type a closing '.

Consider this for example:

$ echo '
> hello
> there
> '

This is echo followed by a single argument composed of four lines. Output:

hello
there


How to set up remote desktop sharing through SSH?

Method 1 :

This can be achieved with vino vnc server & remmina (both come default with ubuntu; if not install it by running sudo apt-get install remmina). Then Run Following commands from local computer in terminal prompt:

ssh -Y gman@remote. Use trusted X11 forwarding, otherwise it wont work
vino-preferences. It will open vino-preferences.

Also Click configure network automatically to accept connection. But don't enter any password, its base64 encoded. Then click close. Then run:

sudo -s

export DISPLAY=:0.0

xhost +

/usr/lib/vino/vino-server &

It will start the vino server.
Logout from server:

xhost -

Press CTRL+C twice

exit

exit

Then open remmina. Choose vnc under protocol.

Under basic tab put server address in server field.

On ssh tab click enable ssh tunnel. Under ssh authentication, it could be password or public key:

Click save. And then double click connection-name(home-desktop as shown in the picture) to start browsing remote desktop.

Method 2:

x11vnc is a simple VNC server and you won't have to mess around with Gnome settings or 500 firewalls, just install x11vnc on all your computers (with puppet or whatever you're using for mass-control).

Then from your local computer run:

ssh user@host -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"

Obviously swapping user@host for the username and hostname/IP of the remote computer.

And then use a VNC client of your choice to connect to localhost:5900. The SSH command starts a vnc server on the remote computer and then tunnels back that port over SSH. You don't have to open up any ports (as long as you can already SSH).

If your computers have funny display settings, you might do better to leave off the -display :0 segment in the SSH command. x11vnc will then automatically try to find the right display.

Source: askubuntu


Configuring a 7.1 Surround Sound USB Headset?

The G35 (and G930) are what is known as a virtual 7.1 headset. So Pulseaudio is correctly identifying it as a stereo headset, as it contains only two speakers - left and right.

Under windows, the driver does some trickery to make it seem as if the headset is 7.1, but it doesn't actually have the physical speakers.

So alas, you're out of luck with this headset. A true 5.1 headset (four speakers in each side) would allow you to enable 5.1 audio though.


Laptop Battery Draining Too Fast. Laptop is too hot

Jupiter developement was stoped since 2012 !

Now use  TLD


Fix hibernate on Thinkpad X60 with 12.04 Precise Pangolin

Since the solution I found for this is not trivial, I wanted to post it here for the record.

I read the man page for pm-hibernate, and in the section on the HIBERNATE_MODE configuration option, I saw a mention of the /sys/power/disk file. I remembered that a few years ago I used to debug suspend and hibernate by writing to /sys/power/state. The possible values can be seen by reading the file.

I tested kernel-level hibernation with sudo sh -c 'echo disk > /sys/power/state'. The system suspended and resumed correctly.

So the problem was that pm-hibernate was doing something wrong.

I tried setting the SLEEP_MODULE option by creating a file /etc/pm/config.d/sleep_module with the content:

SLEEP_MODULE=tuxonice

And that fixed resuming after pm-hibernate.

Then, I needed to create a file /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla as explained here.

And I had a fully working hibernate feature for my ThinkPad X60.

There is probably a bug to be filed in Launchpad about this, but I do not know what it would be.

I have had some stability issues with hibernate since applying this fix. So far, it has failed to resume once, and it failed to hibernate once. So be careful. Another sleep module might be more reliable, but I cannot test that until I can reproduce the problems.


Xubuntu 15.04 Live USB hangs in both live mode and when installing on Acer Aspire E5-573G-56RG laptop

Tried again after giving up for a couple years and found the solution: BIOS version was bugged and wouldn't allow any Linux versions to boot.  Both upgrading and downgrading the BIOS fixed the problem.

Additionally, it was necessary to enter BIOS and in the Security tab enter "Select an UEFI file as trusted for executing:" and find grubx64.efi (for me it was in HDD0/EFI/ubuntu/)

In the end it works in UEFI mode with Secure Boot enabled, dual booting Ubuntu 16.04 and Windows 10.


Downloaded avi videos and can not view the

Your file isn't completely downloaded, it's a partial file. Try to redownload.

If you want to play it as it is,

open your video player and drag and drop the file in your player's window.
or
right click on the file and see on the open with context menu.


Please,

Please,

Please,

Please!
Make a system backup now!

Your hard drive is in imminent danger of failing any minute!

Please follow these instructions right now!

If you do not have a hard disk to back-up to:

Do not turn off your computer!  Press Ctrl+Alt+T and type the following command:

sudo parted --list

then copy-paste the output of that command to any word processor or text editor, print it off, go to a store and show them the print and ask to buy an "external USB hard disk than can contain this data".

Please?  Pretty please???


How to get modem mode using sed or awk from a modem output?

With sed

sed -r 's/[^0-9]*([0-9]+).*/\1/'

extracts the first number from the string.

Example run

$ echo "AT^SYSCFGEX=\\\"0201\\\",3fffffff,2,4,7fffffffffffffff,," | sed -r 's/[^0-9]*([0-9]+).*/\1/'
0201

Explanations

-r – use extended regular expressions
s/a/b/ – substitute a by b
[^0-9]* – grab everything except a digit, here it matches AT^SYSCFGEX=\"
([0-9]+) – grab at least one digit and save it in a group, here it matches 0201
.* – grab the whole rest of the line, here it matches \",3fffffff,2,4,7fffffffffffffff,,
\1 – get content of first group saved before


Error on update can't get it fixed Err:8 & after the first part of post got this Err:7

Your URL is wrong.  It's archive.ubuntu.com not archiver.ubuntu.com.
Edit your /etc/apt/sources.list file and replace instances of 'archiver' with 'archive'.  You can do this with through the terminal:
sudo sed -i.backup 's/archiver\.ubuntu\.com/archive\.ubuntu\.com/g' /etc/apt/sources.list

It will prompt you for your user password, you won't see the characters get entered but it IS accepting your password entry.  Once it executes the command, it'll fix the misspellings in place, and make a backup of the original file at /etc/apt/sources.list.backup as well.
Once done, run sudo apt update and it SHOULD work as expected.


Difference between command-line commands regarding uninstalling Cairo-Dock?

What is the difference between purge and remove?

remove will remove the package(s) leaving the package(s)'s configuration files; purge will remove the package(s) without leaving the package(s)'s configuration files; however their actual behavior is package-dependent: I've seen purged applications that after a reinstallation still held their old configuration.

  Why do some of the above include commands that others don't necessarily include?

Because they attempt, more or less successfully (this is the difference between them) to remove the package's dependencies along with the package.

To be honest, I don't consider removing each dependency manually a good way to do that; to remove and purge a package and all of its dependencies there is a way in apt-get which will take care of the specific case properly and that will remove and purge not more and not less than what is not necessary anymore (and that is general enough that it will work for any package just by replacing the package's name):

sudo apt-get purge cairo-dock && \
sudo apt-get autoremove --purge cairo-dock

sudo apt-get purge cairo-dock: Removes and purges cairo-dock;
sudo apt-get autoremove --purge cairo-dock: Removes and purges each cairo-dock dependecy but those needed by other packages;

Alternatively, to keep the cairo-dock's and cairo-dock's dependencies configuration files:

sudo apt-get remove cairo-dock && \
sudo apt-get autoremove cairo-dock

  Which should I do? I just want to uninstall Cairo-Dock, config files and all. As if, you know, I had uninstalled it. Lol. I've already "uninstalled" it via the Ubuntu Software Center, and it shows it as not being installed in there as well.

The first method proposed above:

sudo apt-get purge cairo-dock && \
sudo apt-get autoremove --purge cairo-dock`

It will purge cairo-dock's configuration files and remove and purge not more and not less than what is not necessary anymore.

  Which, for the love of all that is computerised, is it: "input" or "inputted"?

"Inputted" sounds pretty awkward. I'd second "input": https://english.stackexchange.com/questions/30684/inputted-or-input.


We can not directly grab a live video signal from a HDMI-out port of a video camera without the help of a hardware video capture device.

These come in a wide variety ranging from full HD HDMI capture devices to low budget (720 x 576  pixels) video converters.

For me a low budged solution (less than € 15,-) based on the Easy CAP DC60 device worked fine. The device comes in various brands (e.g. LogiLink, Mumbi) with the same hardware to be connected to USB2.0 on the computer, and to the AV-out jack of the camcorder.

In the usual case most (but sadly not all) of these devices are recognized out of the box using the qv4l2 kernel driver, which is installed by default.

We can then use any webcam application (e.g. Cheese) capable of adressing the qv4l2 driver. Recordings including audio can be done with VLC.


Suspend laptop when closing lid in Kubuntu 18.04

In System Settings > Power Management > Energy Saving > Button Event Handling > When laptop lid closed, change Do nothing to Suspend from the dropdown.


how to remove postgres 9.3 and install 9.2

If you installed postgresql from graphical installer, run uninstall.run file from dir where 9.3 was installed /opt/lib/postgresql/9.3 or /var/lib/postgresql/9.3. It will uninstall 9.3 from your computer.


Since you only have 2gb RAM, I would suggest xubuntu (XFCE). If you want it more lightweight, you could try lubuntu with LXDE.


how to install or revert to an older version of Qt?

you can unistall it with Synaptic package manager in Ubuntu and install new version in it in Synaptic you tick Qt or you can use apt-get

sudo apt-get remove yourpackagename

With below command you can remove package but keep configuration file.

sudo apt-get remove package_name

if you want to remove configuration file and remove package use:

sudo apt-get purge package_name

for install use:

sudo apt-get install package_name


How to fix a "Software caused connection abort" error in Ubuntu 14.04?

I found something quite similar. Only I can access some files and not others. In my case the problem is limited to the connection with gvfs (and here SMB only - it works well using AFP to another server). I used a workaround by mounting the shares manually or via fstab. Both worked for me.

Ingo


Solarized Theme in Terminal Vim on Xubuntu

In the version of xfce4-terminal on Raring you should set this variable in your terminalrc:

ColorPalette=#073642;#dc322f;#859900;#b58900;#205b92;#d33682;#2aa198;#eee8d5;#002b36;#cb4b16;#586e75;#657b83;#839496;#6c71c4;#004fae;#fdf6e3

Please append this line to your terminalrc and see if it works. Apparently the xfce4-terminal devs are changing the syntax for terminalrc. (Notice most of this colors are "half" of the numbered ones).

Here are the contents of my terminalrc. (First notice I am using Anonymous Pro for my font, change the corresponding line to use your favorite font.)

[Configuration]
TitleMode=TERMINAL_TITLE_REPLACE
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBordersDefault=TRUE
MiscCursorBlinks=TRUE
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
MiscDefaultGeometry=81x24
MiscInheritGeometry=FALSE
MiscMenubarDefault=TRUE
MiscMouseAutohide=FALSE
MiscToolbarsDefault=FALSE
MiscConfirmClose=TRUE
MiscCycleTabs=TRUE
MiscTabCloseButtons=TRUE
MiscTabCloseMiddleClick=TRUE
MiscTabPosition=GTK_POS_TOP
MiscHighlightUrls=TRUE
FontName=Anonymous Pro 12
ColorCursor=
ColorForeground=#838394949696
ColorBackground=#00002b2b3636
ColorPalette=#073642;#dc322f;#859900;#b58900;#205b92;#d33682;#2aa198;#eee8d5;#002b36;#cb4b16;#586e75;#657b83;#839496;#6c71c4;#004fae;#fdf6e3


How do I set up an old but Fancy CRT with Ubuntu?

I'll just copy-paste one of my previous answers here:

This is such a common problem... * sigh *

The easiest thing to do is add that resolution using xrandr - this is a good guide. You would then need to add the xrandr configurations to a startup file, so that you'll get your desired resolution upon reboot/startup.

You can do all this hassle-free using a simple program; ResolutionX - it is a graphical front-end to randr, so if xrandr works for you, so will that.


How can I get Libre Office to not list fonts I have uninstalled.?

Try to update font cache, LO might see old information from not up-to-date cache.

sudo fc-cache -f -v

Also, are you sure you did uninstall all copies of fonts?

sudo updatedb
locate <fontname>


Dual Boot Windows 10/Ubuntu 20.04 LTS not working

Not a complete solution but if grub is on the hdd you might be able to get into Windows by booting directly to the SSD from the bios (may be F12).


The driver is already installed by default but it does not work great, but there is a tweak we can do to help.

echo "options ath9k nohwcrypt=1" | sudo tee  /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k


How do I hide minimised windows from Activities overview in GNOME 3?

This can be achieved using a GNOME Shell extension called Hide minimized by danigm . This extension hides all the minimised windows from the Activities overview.

Refer to this to learn about installing and managing GNOME extensions: How do I install and manage GNOME Shell extensions?


You will get informaton by running

lspci -knn | grep Net -A2


Can I change the filter options in the video lens?

Currently, the video lens doesn't allow an easy way to modify the filters it uses. If you want to modify them, my best guess would be to obtain the source for the lens and changing the filter settings by hand.

If you want some help in doing that, feel free to drop a comment below this answer and I will be happy to guide you in the right direction.


After an extended conversation in the comments and in chat... and just to close this question... here's what we did...

performed an fsck on the external hard disk drive
all the recovered files ended up in the lost+found folder
we changed the name and the ownership of the folder and its files
copied the folder from the external hard disk drive to the desktop
reviewed a few of the files and found the missing data


I used the following from this Question

Its a little risky but it works.

Backup the file /etc/group

press ctrl+alt+t and type gksudo gedit /etc/group

Remove the users from cdrom(in this screenshot tachyons is the user name)

save the file and restart your pc


How to remove ubuntu on ubuntu and reinstall ubuntu

The first solution I see would be to resize your ubuntu partition to fill the space left by windows. You could do so with a Gparted LiveCD/LiveUSB. It would consist in deleting the windows partitions first, then expanding your ubuntu partition.

If you want to proceed with a clean install, you will have to delete all your partitions with the ubuntu installer, and then perform a clean install.

Of course, the first step is to build a proper bootable medium. This seems to be your main problem here. You could use Unetbootin to do this. Its interface is quite user-friendly, you shouldn't have any problem with it.

When you have your bootable USB drive, restart your computer, and accede your BIOS to select it as the boot medium. Usually there is a boot menu, but depending on your computer, it can be triggered by pressing F2, F8, F12, Escape or delete during early startup.


My laptop is becoming slower at times, how can I figure out if it is a hardware or a software issue?

You can use htop what's going on your system.

htop displays all the running process in the system ordered by certain columns. This displays the information real-time CPU Usage, Memory Usage and Swap Usage

man htop will give all usage detail.


Check out Docky's LaunchPad here :

https://launchpad.net/docky

Seems the best way forward for you would to be either join #docky on irc.freenode.net or speak to one of the developers directly.


Run the following commands:
sudo apt-get install pulseaudio-module-bluetooth
sudo killall pulseaudio
pulseaudio --start
sudo systemctl restart bluetooth


Can I install Ubuntu in a USB stick and run it as my learning machine? Will it run as a normal Ubuntu without difference?

Can I install Ubuntu in a USB stick and run it as my learning machine?

Yes.
In UEFI mode, the Ubuntu bootloader will always be installed into the first drive, which is usually an internal drive. If you want to get the [UEFI] bootloader (which is a partition) into a USB drive, you can unplug, disconnect or otherwise disable the internal drive.
In BIOS mode alias CSM alias legacy mode you can control where Ubuntu installs the bootloader. But it is always a good idea to unplug, disconnect or otherwise disable the internal drive in order to get the bootloader into the USB drive, when that is what you want.
See the following links,
Step-wise instructions for installed system in a USB drive
How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step
If you need not encrypt the drive, there is an easy alternative. You can use a compressed image

Will it run as a normal Ubuntu without difference?

Almost.
It will be slower, when you use a USB stick. If you use an SSD connected via USB (in an external box or connected via a USB to SATA adapter) if can be fast, almost as fast as an internal drive.

Will it work perfectly?

No.

A USB stick or memory card has memory cells that wear faster than a HDD or SSD. It has a limited number of write operations and there is electronics for wear levelling. Both of these can fail without a warning. So it is important to backup everything that you cannot afford to lose.
There are methods to decrease the wear, but at a cost. Methods to recover from write failures and corruption of the file system cause wear. You can turn them off. This is described at this link.

If your Windows 10 system is installed in UEFI mode, major upgrades may destroy the bootloader of your external drive. So check that the USB drive with Ubuntu is unplugged, when you boot Windows.


I found the answer.

sudo dpkg --remove --force-remove-reinstreq mysql-server-5.5 fixed the problem.

Thank you http://www.embeddedheaven.com/the-package-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it.htm for helping me.


Dual boot Ubuntu 18.04.3 alongside windows 10, windows bootup stucks on purple screen

Any idea of what your GPU is?  Is is an Intel or AMD based laptop?  I was looking into a similar problem on my Ryzen mobile laptop.  I know there is a kernal bug on Ryzen mobile laptops as well as laptops with AMD discrete GPUs with this issue.


Ubuntu Server 16 Internet (Ethernet) not working

If you have a DHCP Server in you network, try (as root):

$dhclient

In a Terminal/Shell. This should work.

If you need a specific configuration, you can do this like the others described in /etc/network/interfaces and /etc/resolv.conf (for the nameservers).

I think it would be a good idea, if you post your /etc/network/interfaces and /etc/resolv.conf, but maybe try dhclient first.


OpenStack MAAS second hard disk recommendation?

The Autopilot will consume all disks it can find on each storage node that are not in use. Typically, for example, you get Ubuntu installed on /dev/sda, and any other /dev/sdX will be used by Ceph or Swift. There is no preference for SDD vs HDD in Autopilot's mind yet.

Now, MAAS 1.9 does support bcache, so you could speed things up a bit with that SSD of yours, but the 15.11 version of Autopilot does not yet know how to use that I'm afraid.


Help!How can I boot Ubuntu without a USB or CD, but have no OS installed on a computer

You can plug your SSD into a friends computer and install Ubuntu to it from there.

You will need the Ubuntu ISO, (or other image). You can install directly from your friends computer without USB, CD or network if they have VirtualBox installed.

See my answer here > Full install of Ubuntu on a USB drive (substitute SSD for USB)

Do not install any proprietary drivers until you move the SSD back to your machine.

This method works in both Linux and Windows machines


Okay so... I'm dumb. Thanks for listening guys. lol

Basically, all I had to do was run sudo n 0.12.7 to tell it which version to install.

I get the feeling there's a huge mess of things if I start looking at what's been installed more than once but its working for now. I'll do a clean Ubuntu install soon and start again from scratch without all my mistakes.


Ubuntu terminal: How to change ctrl + c (interrupt) to something else?

The key combo was changed to Ctrl + Alt + C by default.

Also Alt + F4 is will kill the foreground task (same as clicking the cross).

To change the interrupt key to ctrl + I

stty intr ^i

Just change the "i" to any other letter you want and to see all terminal shortcuts you can run

stty -a

There is a very good answer explaining this here, ignore the title and read the first answer.


Installing huawei E303 modem GUI on Ubuntu 14.04

I copied the whole Linux folder inside the modem storage to my home folder and made the installation scripts executable. Then I ran them from the command line, and after this I got a nice gui which i could use to check my data usage just the way it used to be on windows.


accidently deleted bootmgr (dual boot), heard you can use supergrub can create a new one? how?

If you want the Windows bootloader, boot to a Windows installer (the free Windows Technical Preview one will do) and select repair your computer after language selection. Choose Troubleshoot>Command Prompt, and run: bootrec.exe /fixmbr.


You appear to have dhcp4: true set on both the bond, and the bridge which includes the bond.  You should likely only be running dhcp on the bridge.


Yes, there will be a windows client after the beta. Currently we have the beta to test the interaction with the desktop and the possible problems that we will have.

Regarding the interaction with the desktop, we are also porting desktopcouch to work n windows which should bring your contacts to that platform. Tomboy sync already works on windows and there are plans to help banshee to be ported to windows so that we can offer th music store there.


Once you have upgraded pip you only needed to update your link to your new pip on /usr/bin

sudo ln -s /usr/local/bin/pip /usr/bin/

since the old one has been removed when you upgrade the pip package using pip ;-)

Then, you are ready to go :)


How do priorities work on ubuntu's 12.04 system monitor?

An app running with higher priority gets more access to cpu time as compared to an app running with low priority. This is primarily used to keep an app (like the Arista transcoder) from eating all of the cpu time and slowing the system to a crawl, OR, for allowing one app to suck up as much CPU as it can regardless of the consequences.

It is not possible by default to raise the priority of running apps. This includes after you have lowered the priority.  However if you wish to do so you simply need to add the following to /etc/security/limits.conf :

USER             -       nice            -20

Replacing USER with your username and then rebooting the machine.


try to install the package icedtea7-plugin

open a terminal and follow the fowling comands

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin


If you want a quick and dirty one-line command, use python SimpleHTTPServer

python -m SimpleHTTPServer

How to use it example for your case:

$ cd /var/www
$ python -m SimpleHTTPServer

Thats it! This will be serving current directory /var/www. Default port is 8000, so your website will be accessible from http://ip-address:8000 or at your local machine http://localhost:8000

To access other files not named index.html, use their name http://ip-address:8000/other-name.html, if there is no index.html, you will see a directory listing with all the files in your folder.

To change port, you need to have sudo priviliges:

$ sudo python -m SimpleHTTPServer 80

This command will be serving your directory on port 80, if you have apache2 already installed, you can change this port to 81, so it does not have a port conflict and you will access your website from http://ip-address:81, don't forget to allow these ports in your firewall, to allow port 80 use:

$ sudo ufw allow 80/tcp

No webserver

Another way is not to use any web-server, just install your favorite desktop environment and browser on your server and connect to it with remote desktop of your choice. Then your website will be available from the browser as you are used to at file:///var/www/index.html


numlockx no longer works after upgrade to 11.10

Install NumLockX: Ctrl+Alt+T, insert: sudo apt-get install numlockx (Ctrl+Shift+V)
Open with su lightdm.conf: Alt+F2 insert: gksudo gedit /etc/lightdm/lightdm.conf (Ctrl+V)
Insert line: greeter-setup-script=/usr/bin/numlockx on (Ctrl+V)
Save it (Ctrl+S)
Reboot your computer.
Enjoy!


I got my printer working. How do I figure out what I did right, so I can reproduce it?

If you used the command line, then you can see the last entered commands in the .bash_history file located at your home folder (~).

I can't think in something else right now. If you know more, feel free to add it here


Resizing fat32 partition in command line without losing data

Well, first if you "already having data in the form of files. I can't lose them" your very first step is to back them up before you do anything else.

Resizing and moving partitions does not often result in data loss, and if all else fails you can almost always revover files with photorec - http://www.cgsecurity.org/wiki/PhotoRec - it is a pain to do so.

Second you can not resize or move partitions that are in use. This is the main reason people advise you do these operations from a live usb.

So , no matter what, you can not move or resize your root partition without booting to a live USB (an exception would be adding to LVM).

So long as the partitions in question are not in use, ie unmounted, you can move and resize them :

See How do I resize partitions using command line without using a GUI on a server?

Otherwise your question is likely to be closed due to :

You are running Debian
Lack of information - You did not post your partitioning scheme, tell us what you want to move, what partitions are mounted, and what command and error message you are getting.


Ubuntu 14.04 & 16.04 Wake on lan doesn't work while 12.04 works

Please note I already had wakeonlan enabled in the bios and through ethtool. It stopped working at some point for me after doing dist-upgrades.

I was able to get it to work for 17.04 by:

1) Installing the tlp package with:

sudo apt-get install tlp

2) Changing the line in "/etc/default/tlp" that says

WOL_DISABLE=Y

To

WOL_DISABLE=N

3) After shutting down the computer it was able to be started with WOL. I test this on two different machines and it worked on both.

After running this solution for a while, I found an unintended side effect where some of my USB devices were losing power. I ended up disabling the USB autosuspend feature of tlp by changing the line in "/etc/default/tlp" that says

USB_AUTOSUSPEND=1

To

USB_AUTOSUSPEND=0


Try executing the following on command line

gsettings set org.gnome.desktop.input-sources show-all-sources true

(Reboot the machine if you don't see more keyboard layouts right away.)


gnome-panel crashed, and now won't load in GNOME Flashback (Metacity and Compiz)

EDIT:  I broke it again (about 5-10 mins after posting my original answer below)... then I fixed it!  Turns out, when I was adding a new app to the Applications menu in flashback using alacarte it happened again, so I went to kill all my .desktop files, and as it turns out I somehow corrupted something in ~/.config/menus.

Specifically, I added an entry to the Internet category, and it created a duplicate Internet entry, and when trying to hide that, gnome-panel crashed.

Let's see if I can do what I want without breaking things...

After taking some more time to troubleshoot the issue, I've found that it's something specific to my user account.  I tried logging in as a guest with gnome-flashback (as I should have done originally) and it worked!

I tried clearing all my Unity, Metacity, Gnome, and Compiz settings with no luck.  I tried reinstaling flashback, compiz, and making sure everything was up to date.  None of these helped.  I can only suspect that a file got corrupted somehow in a settings file I didn't know to reset.

Seeing as I'm more familiar with Ubuntu Server than I am desktop, I decided to backup my home directory, delete my user account, and re-create it and restore my documents, music, etc. from the backup.

So far so good.  It's working like a charm now.  Will it happen again?  Maybe (more likely than not with my luck), but hopefully not.


Downgrading a package with older version "physically" in the repository

I tried simplier way than in the comment to the question, and it seems working for me.

I downloaded .deb file for openjdk-7-jre-headless:

wget http://mirror.pnl.gov/ubuntu/pool/universe/o/openjdk-7/openjdk-7-jre-headless_7u21-2.3.9-0ubuntu0.12.04.1_i386.deb

Then I tried:

dpkg -i openjdk-7-jre-headless_7u21-2.3.9-0ubuntu0.12.04.1_i386.deb

And got a message telling me about incompatible version of openjdk-7-jre-lib (forgot to copy the message itself, sorry)

I downloaded .deb file for openjdk-7-jre-lib:

wget http://mirror.pnl.gov/ubuntu/pool/universe/o/openjdk-7/openjdk-7-jre-lib_7u21-2.3.9-0ubuntu0.12.04.1_all.deb

Then I tried:

dpkg -i openjdk-7-jre-headless_7u21-2.3.9-0ubuntu0.12.04.1_i386.deb openjdk-7-jre-lib_7u21-2.3.9-0ubuntu0.12.04.1_all.deb

And it seemed to downgrade properly.


How do I add my Birthday in Ubuntu 16.04 Calendar App

The "Birthdays & Anniversaries" agenda is automatically filled when you add contacts. To do that, use the Contacts application.


Internet issue on Vmware Ubuntu 20.04 wired connection

On your Vmware can you go to Edit>Virtual network Editor then store your network to its default then press ok
Make sure when you do this your VMware is switched off this has worked for me several times


What permissions are required to read a sub directories size?

No, you will get a permission denied if the user is not allowed to read the directory. Example:

~$ du -hs tmp/
8,0K    tmp/
:~$ sudo chmod 000 tmp
:~$ ls -ltr
total 16
d--------- 2 rinzwind rinzwind 4096 dec  2 17:55 tmp
$ du -hs tmp/
du: cannot read directory 'tmp/': Permission denied
4,0K    tmp/

A user does NOT need read access to the file itself.

$ cd tmp/
:~/tmp$ ls -ltr
total 4
-rw-rw-r-- 1 rinzwind rinzwind 54 dec  2 17:55 1
:~/tmp$ sudo chmod 000 1
:~/tmp$ cd ..
:~$ du -hs tmp/
8,0K    tmp/


How many displays are supported by Ubuntu?

Theoretically as many as you have, but practically you could face problems...

I had problems with a PC with one ATI and one NVidia graphics card for 4 screens.

With two NVidia graphics cards I got it to work with Twinview using the proprietary driver. With ATI only configuration this should work as well, however this is not named TwinView. But I did never have two ATI graphics cards - thus untested.

About other graphics card vendors I have no information.

You should add some information especially on your Graphics hardware and Mainboard Chipset.

You mentioned 5 Screens - 2 cards with 2 screens each and one connected to an onboard graphics card? This might as well cause problems depending on which onboard solution it is.


How to change the username and computer name?

you can change hostname by editing  /etc/hostname and user by usermod -l new_name you should also change homedir, so it would be easier to create new user?
moving homedir can be done also with usermod, if necessary :)


What does a leading asterisk mean in extended and basic regular expressions?

As far as the standard is concerned, the results are undefined:

  *+?{

  The <asterisk>, <plus-sign>, <question-mark>, and
  <left-brace> shall be special except when used in a bracket
  expression (see RE Bracket Expression). Any of the following uses
  produce undefined results:

  If these characters appear first in an ERE, or immediately following a <vertical-line>, <circumflex>, or <left-parenthesis>
  If a <left-brace> is not part of a valid interval expression (see EREs Matching Multiple Characters)

Any attempt to consistently explain what happens in this case would be at the mercy of the implementation. Going by @kos's answer, they probably match the empty regular expression.


Problems installing Crouton on a Chromebook

Try test0000 as password . It should ask you to create a passphrase afterwards


since i can not comment yet, you should try this, first open up your /etc/apt/sources.list and change all trusty links to wily
then indeed do apt-get update;apt-get upgrade and apt-get -f install, maybe it works? please post your results!


Can I leave something like a mark or bookmark in Banshee on an audio book for example?

If it is nothing but a normal audio file, you sure can. Go to the tools-tab (or whatever it is called in English) and select bookmarks. There you can set new bookmarks, delete old and jump to already set bookmarks. That should be exactly what you are looking for.


Error: (sudo: unable to change to root gid: Operation not permitted)

This is the normal behavior of guest account. it's not permitted for guest account to run commands like su or sudo because of security concerns. Otherwise anyone could sit behind your desk and do whatever he wanted to your system like installing/removing anything.

And remember that when you are logged in as a normal user, to run sudo you have to be a member of "sudo" group.


Environment partially in english on a french Ubuntu14.04 version

If it's just occasional strings which appear in English, the explanation may simply be that those particular strings were not translated into French in 14.04.


You seem to be suffering from a bit of Confusion. So you had steam (Linux version) installed. Then went and installed the windows version using wine. It looks like you then removed the Linux version. So now when you try to launch steam via icon, your actually trying to run the Linux version which is not installed anymore.

So here is my recommendation.

Install the Linux version again, and use it where you can.
Remove wine
Install CrossOver it's the same as wine (even made the same people it's just their supported version).
Install steam via a CrossTie
This will give you a Linux version of steam along side a windows version. You can (and should) use the Linux version for games that support it, like HL2, and use the windows version for games that do not have Linux versions like CIM2.

Now as a fair note, I think crossover's support is worth it, but you can do it with wine, or Play on Linux, but there often more configuring an it's not as smooth (not to mention the lack of real support).


I turned out, that the freezes are a product of a bug in gnome-shell-extension-desktop-icons is.

@Federico Poloni found his own workaround.

Go fishing is a good thing :D


How can I add an applet to MATE from the terminal?

As MATE is a fork of GNOME2 and most of its components are simply the old GNOME2 with their names changed, I'm assuming mate-panel-add works the same as gnome-panel-add used to. You need to do something along the lines of:

/usr/lib/gnome-panel/mate-panel-add --applet=OAFIID:MATE_DockBarXApplet --panel=top_panel_screen0 --position=500

Where the value of --panel= is one of the panels found in mateconf found with something like:

mateconftool-2 --all-dirs /apps/panel/toplevels

The --applet identifier can be found in the /usr/lib/matecomponent/servers/ directory. In this particular case, in the MATE_DockBarXApplet.server file.


Enlarging VirtualBox HD ..How to handle?

in the virtual win7 area
open system (Systemsteuerung)

     admin (Verwaltung)

     memory (Datenträger)

expand your systempartition


It might be because you installed some other network manager like wicd along with gnome-network-manager as this exactly was the problem in my case now assuming the same here is what I suggest:

Install NetworkManager:

sudo apt-get install network-manager-gnome network-manager

Then remove WICD:

sudo apt-get autoremove wicd wicd-gtk

Restart your system.
Confirm everything is working, then remove WICD config files:

sudo dpkg --purge wicd wicd-gtk


OpenGL 3.2 on 18.04 VirtualBox guest: Is it possible?

As far as I can tell, Virtualbox does not support OpenGL 3.2. VMWare Workstation does, however.


Share internet from connected wifi like Connectify

If you are using wifi router then I think you cant share the internet using hotspot ,I mean, using hostapd, hostapd may give result on cable or any external adapter.


How to install drivers for AMD Radeon HD 7850?

You have to install driver that you can download here:

http://support.amd.com/us/gpudownload/Pages/index.aspx

To install driver First remove old stuff by:

sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo dpkg-reconfigure xserver-xorg

then install your new driver:

sudo chmod 755 ./amd-driver-installer-12-4-x86.x86_64.run
sudo ./amd-driver-installer-12-4-x86.x86_64.run

***VERY IMPORTANT: if/when it gives you the number options like [1] DO NOT HIT ENTER, you must actually enter the number 1 then enter.

sudo aticonfig --initial

There is also a good idea to install "Catalyst Control Center" that you'll find in Package Manager


The same way as in Windows, more or less. From the Files file browser:

To make a directory -- right-click and select New Folder.
To make a file -- right-click and select New Document -> Empty Document.
To edit the new file -- right-click the new file and Open With -> Other Application -> GVim (GVim is vi with a better GUI. GVim is in the Ubuntu repos.).
To delete all of the above -- the easy to delete anything is to click it once and send it to the Trash by pressing the Delete key. Sorry, no Gedit. Alright, if you must do it that way, open Gedit and from the Gedit menu select Edit -> Preferences -> Plugins tab -> put a check mark to the left of External Tools. Restart Gedit, and now you can run commands in Gedit by selecting Tools -> External Tools -> Run command. What's the point though? You can only run commands the same way as you would run them in the terminal, so you lose the advantage of using a GUI program.


Netbook/Tablet : is there a way to switch between Desktop mode and touch mode (preferably the new Touch interface of Ubuntu)?

I believe you would be able to use the project https://launchpad.net/magick-rotation

though I do not have a Dell Inspiron Duo rather I am using a HP EliteBook 2760p and have successfully used that project to run shell scripts from which point one could script what ever they wanted including calls to existing programs.

As for the touch interface, "Ubuntu Touch" is mostly for phones but you have a tablet pc...unsure the complexity of switching between the "Unity" and the "Touch" interface...

Though to the point of scripting the screen rotation you can find the following example here

#!/bin/bash

old="0"
while true; do
    if [[ -e /sys/devices/platform/hp-wmi/tablet ]]; then
        new=`cat /sys/devices/platform/hp-wmi/tablet`
        if [[ $new != $old ]]; then
            if [[ $new == "0" ]]; then
                echo "Rotate to landscape, hide CellWriter."
                xrandr -o normal
                xsetwacom set stylus rotate none
                xsetwacom set eraser rotate none
                xsetwacom set touch rotate none
                cellwriter --hide-window
            elif [[ $new == "1" ]]; then
                echo "Rotate to portrait, show CellWriter."
                xrandr -o right
                xsetwacom set stylus rotate cw
                xsetwacom set eraser rotate cw
                xsetwacom set touch rotate cw
                cellwriter --show-window
            fi
        fi
        old=$new
        sleep 1s
    fi
done

# From Red_Lion post #576:  http://ubuntuforums.org/showthread.php?t=845911&p=7732316

There is a poject called desktop-switcher which has an non maintained "sourced code base" which might be helpful if you want to do more than scripting as suggested above...


How do I restore the Templates folder in Ubuntu 18.04?

By default, this folder is empty.

It is declared for Gnome Shell in this file

~/.config/user-dirs.dirs

Where should stand the line

XDG_TEMPLATES_DIR="$HOME/Templates"

Of course, the Template Folder name depends on your locale and language

If the line has been removed because off the deleted folder, you will just have to create a new one and add the line.


Can't install latest Steam on Ubuntu LTS 20.04 Focal Fossa

This is likely due to mismatched multiarch packages.
The most useful post I've found is this from @kisak:

The most common situation with Ubuntu is that a newer version of a 64 bit package got installed, but the package manager doesn't have the exact same version available for 32 bit. Debian's multiarch implementation requires that all 64 bit and 32 bit variants of a package have the exact same version. Apt won't automatically pull in an older 64 bit version of a package than what's installed in order to allow the 32 bit variant to proceed and simply tells the user it's not going to happen.

For me, it was an issue with libllvm11 after upgrade where I had a :amd64 version from a llvm-toolchain ppa. The :i386 version from the mesa ppa could not match it, which was shown by running this command:
$ apt policy libllvm11 libllvm11:i386

Only found which package was the problem by experimental install/remove and seeing what caused the entire desktop environment to want to uninstall.
In your case, I note you have mesa packages with the version 20.1~git2003140730.b93a19~oibaf~e which suggests they're from ppa:oibaf/graphics-drivers rather than the (similar) Valve ppa:kisak/kisak-mesa. So, it may be worth purging the existing graphics stack, and installing the other one to see if that's the cause.
sudo apt install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt-get update
sudo apt-get dist-upgrade

That's a little destructive, so if you can work out the exact problem package(s) and downgrade first, that may be safer.


Why do I briefly see a black srceen with white writing which then disappears when trying to install Ubuntu on an HP Pavilion G7?

Check out the Ubuntu Community Documentation on Boot Options
Excerpt from it:

To supplement the main boot options, the F1-F6 keys provide additional
information and boot options for special circumstances. These options
are accessed by pressing any key before the Welcome screen appears.
Pressing the ESC key or selecting a language will display the main
screen.
F6. Other Options. ACPI (Advanced Configuration and Power Interface) and EDD (Enhanced Disk Drive) options which may help if
your computer does not support or has problems with these systems.
Highlight the selection and press the ENTER key or SPACE key to select
it. An "X" will appear, indicating selection. Multiple items can be
selected from this popup menu. Hit ESC to leave the popup menu. The
selections are retained at the time the user presses the ESC key.

Hope that helped.


Where Does the Ubuntu "System Ready" Drum Roll Come From?

The sound is composed by Nathaniel McCallum, according to the copyright file included in its package. Most likely, it is original content.

$ head -n 6 /usr/share/doc/ubuntu-sounds/copyright
This is Ubuntu's GNOME audio theme.

Copyright (C) 2004 Canonical Ltd. <http://www.canonical.com>
Sounds composed and recorded by Nathaniel McCallum <npmccallum@canonical.com>

This work is licensed under the Creative Commons Attribution-ShareAlike License.

For users who are unaware, the "system ready" drum roll refers to the sound played when the user has reached the login screen. The sound length is 1 second.

The sound is available as system-ready.ogg file that is included in the ubuntu-sounds package, or can be found at full path on your system as below.

/usr/share/sounds/ubuntu/stereo/system-ready.ogg

The package is installed by default in Ubuntu releases only.


lightweight window manager/desktop environment similar to Unity

Xubuntu
You may also want to have a look at Xubuntu that comes with the lightweight Xfce desktop. This also includes a customizable launcher (here shown at the bottom) that can also be moved to the left side like in Unity:


Automate a command line when I power on my computer?

xrandr will not work from rc.local because it needs Xorg (graphical mode) running. You need to use a way to autostart commands/applications for your Desktop Environment after you logged in as some user. AFAIU For default Ubuntu 18.04 this method should work.

If you want the changes to affect Display Manager (the thing you see before logging in as a user) too that's more difficult, please add what DM you are using either by edit or comment.


How to separate disk partition after complete installation?

To change partitions they must not be mounted. I don't know whether fdisk will still work after unmounting /dev/sda1X, so I recommend the following solution:

Create a backup of your important data before doing this. Partitioning may harm existing partitions.

Boot your Live Ubuntu (the one on your installation media)
Open GParted (if not working: Alt+F2 -> sudo gparted)
Change size of /dev/sdb1 (Actual device name may differ, just search the correct one)
Create new partition
Commit changes (may take a while)
reboot


As @Rinzwind says, you should run a script that should check if it's time to run, every 12 hours

0 0,6,12,18 * * * /path/to/script.sh

The catch is that if you divide by 36 directly, it should have to run at 00 and 12 exactly, also it will skip the first day of the year.

This script allows choosing arbitrary values for ~00 and ~36 hours

#!/bin/bash

# Global variable with result from shouldItRun()
runCommand=0
# Run at this hours
runAt00=6
runAt36=18

# There's an issue when the year changes. Since ((365*24)/36) is
# not exact, so using the cron-only solution @JEL, it will run at
# 6PM on day 365 of first year, and at 6am on day 1 of second year

# So ...
# Year when the script started running
yearStart=2015
# Get number of days since the first year the script is running
yearCurrent=$((`date '+%Y'`-1))
daysAccumulatedUntilThisYear=0

for i in $(seq $yearStart $yearCurrent)
do
    thisYearDays=$((`date -d ''$i'-12-31' '+%j'`+0))
    daysAccumulatedUntilThisYear=$(($daysAccumulatedUntilThisYear+$thisYearDays));
    echo '>> Year '$i' ('$thisYearDays') | Accumulated : '$daysAccumulatedUntilThisYear
done

function shouldItRun {
    # Init to false
    runCommand=0
    #
    hourOfMonth=$(($(($daysAccumulatedUntilThisYear+$1+0))*24))
    hourOfDay=$(($2+0))

    # POSIBLE VALUES 24,12,0
    hoursLeft=$(( $hourOfMonth % 36 ))

    # IF 24 hours left AND time = $runAt00:XX
    if [ $hoursLeft -eq 24 ] && [ $hourOfDay -eq $runAt00 ]
    then
        echo '>>> DAY '$1' '$2':XX ('$hourOfMonth') : '$hoursLeft
        runCommand=1
    fi

    # IF 12 hours left AND time = $runAt36:XX
    if [ $hoursLeft -eq 12 ] && [ $hourOfDay -eq $runAt36 ]
    then
        echo '>>> DAY '$1' '$2':XX ('$hourOfMonth') : '$hoursLeft
        runCommand=1
    fi
}

# Example of today at this time
dayOfYear=`date '+%j'`
hourOfDay=`date '+%H'`

    #echo '> '$dayOfYear
    #echo '> '$hourOfDay

shouldItRun $dayOfYear $hourOfDay

if [ $runCommand -eq '1' ]
then
    echo 'Run it now!!'
else
    echo 'STOP : do not run it now!!'
fi

# Example with first 20 days of year, at 06: and 18:,
# but tested also at 00: and 12:
for i in {1..20}
do
    shouldItRun $i 00
    shouldItRun $i 06
    shouldItRun $i 12
    shouldItRun $i 18
done


Pipe an infinite stream to internal loop?

Use netcat

Install netcat-traditional  or netcat-openbsd
.
On the receiver end, open up a listening socket:

nc -l 1234

where 1234 is the port number to listen on. By default netcat uses a TCP socket.
This will run continuously until it receives an EOF. If you need to turn that off, add the option -q -1 (negative wait timeout - see manpage).

Optionally, redirect the output to a file or pipe it, e.g.:

nc -l 1234 > mylogfile.log

On the sender end, fire up the command and pipe the stdout to netcat:

mycommand | nc 123.45.67.89 1234

where 123.45.67.89 is the IP address of the listening end and 1234 is the port number again.

This will run continuously (streaming the data) until the mycommand outputs an EOF.

Discussion

  How to redirect the output of a command to the internal loop?

I'm not sure what you mean by the "internal loop", but redirecting output is a very general question for your shell.

  I want to make sure that data is sent EVERY time something is written to stdout, and that the pipe won't wait for the command to end (never happens ideally!). Is that right?

Pipes in the shell won't wait for an EOF to pass the data, as far as I know.

  If 2 is true, is there a buffer system to send chunks of data once it reaches a certain size only?

Yes, the general buffers in the pipes as described in the suggestion of ignis in his comment: Question on UL: Turn off buffering in pipe.

TCP will handle buffers on the TCP level.


Default themes directory is /usr/share/themes/ but it's editable only for root. If You want to edit themes the default directory for current user would be ~/.themes/ I believe.


External bluray drive not mounting - 20.04 LTS

I fixed it.
sudo apt install udftools
and a reboot and the device now works as intended.


How can I run a systemd service periodically?

systemd provides an ananalog of the cron jobs. They are called timer.

You need to create both a .service file to run your script and a .timer file with matching filename to schedule it.

Something like:

[Unit]
Description=run my script

[Timer]
OnCalendar=*-*-* *:00/5:05
Persistent=true

[Install]
WantedBy=timers.target

To run every 5 minutes for example. I let you dig the man page or you search engine to look the OnCalendar directive or others too.

You can even run as a user by placing both files in ~/.config/systemd/user/ or as root in /etc/systemd/system

You need activate the timer to get it running after you reboot

sudo systemctl enable myservice.timer

Add --user to the command above  (and without sudo) if you run as a user from ./config

Then, run it with

sudo systemctl start myservice.timer

or

systemctl --user start myservice.timer


how to set system wide proxy address in Ubuntu 18.04 LTS server

Use

sudo vi /etc/environment

and add the following lines to the environment file just below to the PATH line

http_proxy="http://userName:password@proxy:port"
https_proxy="http://userName:password@proxy:port"
ftp_proxy="http://userName:password@proxy:port"

where username and password are optional. After writing press the escape key and type :wq and press enter to save and exit the editor.

In the terminal run the following command

sudo netplan apply

It works for me...


How to set a background image for each monitor in GDM3?

This is more of a hack than a clean solution. Is there one available ?

My suggestion is to use Gimp to create an image that spans the 3 monitors using the same layout as your monitor.

It is just a matter of 5 minutes, if you know Gimp, a little else, if you don't.

This way, you can use whatever you want as wallpaper for each monitor. You are not obliged to use the same image. The final image size is in green.


There can be a noticeable mismatch when files are being transferred to a USB device and their apparent progress as it's shown on-screen. If your USB drive has an indicator light, check that it has actually stopped flashing or otherwise indicates that the transfer is complete.

One way I've found to ensure large files are transferred is to use eject option for that drive. Your computer should verify and push any remaining data that is being transferred then indicate that it's safe to remove. Watch for the notice on your screen.

Hope that helps a little.


Upgrade from Kubuntu 14.10 to 15.04 hangs with grayed out Distribution Upgrade window

Here is what I did to fix it. In the end I basically upgraded to 15.10 without getting 15.04 to run properly. First I killed the upgrade process:

$sudo kill 2877
$sudo dpkg --configure -a

Configuration file '/etc/systemd/logind.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** logind.conf (Y/I/N/O/D/Z) [default=N] ?

I had manually edited logind.conf before, so this question makes sense. Maybe, this was the point where the upgrade was stuck.  I answered Y.

$ sudo apt-get update

gave the following message:

W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: You may want to run apt-get update to correct these problems

then I performed an upgrade of my packages using aptitude. Which gave me the following errors:

Errors were encountered while processing:
 libqgpgme1
 kde-telepathy-auth-handler
 kdepim-kresources
 cups-browsed
 cups-daemon
 cups-core-drivers
 cups
 hplip
 printer-driver-hpcups
 printer-driver-postscript-hp

I removed exactly those packages using aptitude and performed another upgrade. This one did not show errors. The I performed another upgrade.
Then I rebooted my machine but it hangs while booting. It says starting version 219 on the screen.

I installed the package xinit. I ran sudo dpkg-reconfigure lightdm to select lightdm as the default window manager. Now I'm able to see the login screen for a second until the screen turns black. I switched back to sddm: I ran sudo dpkg-reconfigure sddm and selected sddm.

Then I booted into root console and performed do-release-upgrade. This did hang after a while. Then, I upgraded all packages with aptitude. After 2 or 3 reboots I can now login to KDE again.


Turning on Universe and then updating there actually allowed me to install the update!


Probably from the old days, when computer clocks ran from the power supply frequency (50Hz in some parts of the world, 60Hz elsewhere). The value is needed when converting from # of clock interrupts to actual, real wallclock seconds.


Trying to install Ubuntu on USB - "Failed to create system file"

So we've already established in comments that you're trying to run Ubuntu and install it on the same disk at the same time, which isn't going to work.

Where you want to have a portable version of Ubuntu on a USB drive, you have two options to choose from:

Live USB with persistence

This is part of the walkthrough for using LiLi USB Creator. I'm assuming you're using Windows. There are other possible methods. Let me know if this one doesn't work.

Full install on the USB drive

This method should work on Windows, Mac, or Linux.

Live USB with persistence is much easier for beginners (you've practically already done it) but it has some limitations, which are explained in the instructions linked above. For more discussion on the differences between the two methods:

Persistent Live usb vs Full install
Benefits of persistent install over direct install to flashdrives? - Ubuntu Forums


How to configure driver for Gigabyte Wi-Fi adapter?

Open another terminal windows and run journalctl -f there.

Then load driver using:

sudo modprobe -rv iwlwifi
sudo modprobe -v iwlwifi

and look what happens in logs.

Run in terminal: nmcli dev wifi to see if it works showing hotspots in the neighborhood.

If it does not help, then try:

Download backports package for your kernel (uname -a).
Extract it: tar xvfz backports-somekernelversion.tar.gz
cd backports-somekernelversion
make defconfig-iwlwifi
make
sudo make install
Reboot
sudo update-initramfs -u if previous reboot didn't help
Reboot

If this does not work, you could uninstall this by:

cd ~/Downloads/backports-somekernelversion
sudo make uninstall

Try to put firmwares from 19.10 into /lib/firmware folder:

$ ls /lib/firmware/iwlwifi-9260-th-b0-jf-b0-
iwlwifi-9260-th-b0-jf-b0-33.ucode  iwlwifi-9260-th-b0-jf-b0-41.ucode
iwlwifi-9260-th-b0-jf-b0-34.ucode  iwlwifi-9260-th-b0-jf-b0-43.ucode
iwlwifi-9260-th-b0-jf-b0-38.ucode  iwlwifi-9260-th-b0-jf-b0-46.ucode

$ modinfo iwlwifi | grep 9260
firmware:       iwlwifi-9260-th-b0-jf-b0-46.ucode

Find out if your driver installed somewhere:

find /lib/modules/ -iname *9260*.ko

For my system I have the next output:

$ find /lib/modules/ -iname *cfg80211*.ko
/lib/modules/5.3.0-40-generic/kernel/net/wireless/cfg80211.ko
/lib/modules/5.3.0-40-lowlatency/kernel/net/wireless/cfg80211.ko
/lib/modules/5.3.0-45-lowlatency/kernel/net/wireless/cfg80211.ko
/lib/modules/5.3.0-45-generic/kernel/net/wireless/cfg80211.ko


Which drive did you install grub to (HDD or SSD)? Install Grub to SSD and set the SSD as first boot device in your BIOS.


Switching workspaces in gnome-shell 3.10 de-focus all windows

Taken from an OP's edit:

Google Chrome's Hangouts extension had its "Keep Hangouts on top of other windows" option switched on. So you'll have to forgo pinning the Hangouts chats to the notification panel to get focus working properly again.


How to apply a patch to indicator applet?

To quickly generate new packages with your patch applied, run the following in a gnome-terminal:

sudo apt-get build-dep indicator-applet
sudo apt-get install devscripts
apt-get source indicator-applet
cd indicator-applet-<version-string>
cp /path/to/patch/indicator.patch .
patch --dry-run -p1 < indicator.patch

Continue only if that succeeds without errors.

patch -p1 < indicator.patch
debuild -us -uc

Now wait for the thing to compile and if everything worked, you'll get some debs ready for install:

cd ..
sudo dpkg -i *.deb # I'm lazy, just choose the debs that are already installed

You'd need to do this every time the indicator-applet gets updated (but then I don't know how often such updates happen in stable releases).


ALERT! /dev/mapper/ubuntu--vg-root does not exist. Dropping to a shell!

sudo update-initramfs -u -k 5.0.0-25-generic

This updates the initrid from not running kernel.

If it is not working show

sudo update-initramfs -uv -k 5.0.0-25-generic

Verbose (-v) can show us some hint what is going wrong.


To show the disk spaces and sizes of all disk
================================================= Use Ubuntu Live USB:
There are commands to do this :
Terminal :
Some examples :

lislblockdevices:

parted:
sudo parted -l

fdisk:
sudo fdisk -l


Check if Bash version is >= given version number

Try:

$ [ "${BASH_VERSINFO:-0}" -ge 4 ] && echo "bash supports associative arrays"
bash supports associative arrays

BASH_VERSINFO is a readonly array variable whose members hold version information for this instance of bash. Since it was introduced with bash 2.0, it is likely supported by all bash versions you will encounter.  But, to be cautious, we include a default value of of 0 for any earlier version bash for which this variable is unset.

Extracting version information from other programs

You asked about LibreOffice, Python, kernel, etc.

LibreOffice produces version information that looks like:

$ libreoffice --version
LibreOffice 5.2.6.2 20m0(Build:2)

To extract the version number:

$ libreoffice --version | cut -d' ' -f2
5.2.6.2

For python:

$ python -c 'import platform; print(platform.python_version())'
2.7.13

To obtain the kernel version, use uname:

$ uname -r
4.9.0-2-amd64


how to mount img file (Virtually) WITHOUT loop or fuse or any loadable module in ubuntu 14.04 (running in docker without priviledge in c9.io)

You can't mount without some cooperation from the kernel, period.


Does Ubuntu update kernels upgraded by ukuu?

No, You'll need to keep running ukuu to stay updated.
But I'd question whether you really want a mainline Kernel from ukuu at all.
ukuu downloads packaged mainline kernels from kernel.ubuntu.com. This isn't a real PPA or repository so Apt (what manages your other updates) will never directly interface with it. Only uuku (or manually downloading and installing) will keep this updated.
Ubuntu will keep updating the version of the Kernel that shipped with your install, but the likely bigger version number of the ukuu-installed Kernel will displace the it when your bootloader goes to pick. This is just how the grub assembly scripting works by default.
I should add that mainline kernels aren't all that either. Newer isn't  always better. They're raw kernel.org builds with minimal build and packaging patches. People won't backport security patches for you. People won't apply the performance and stability patches for you. They're really just there for testing and working around really new hardware issues.


You could try turning off ACPI and APIC. I've occasionally had problems with both on various hardware.

At the menu there should be an option to edit the boot settings. Just wang acpi=off and noapic on the end. You might only need one or the other.. But I can't see it hurting to try both at once.


I Get 'Import error : No module named MYSQLdb' in python 2.7. I've tried everything from the other similar thread

I was having the same trouble. My python is 2.7.12 . I tried with pip and pip3 but none of them worked.
Try sudo pip2 install MySQL-python.

It worked for me.


Unable to find a medium container a life file system from casper on PXE boot

The netboot option looks wrong.  The source suggests the option needs to be at least netboot=.  Based on the man page, I'd suggest netboot=nfs

The parameter "nfsroot=" (with optional "nfsopts="), should specify where is the location of the root  filesystem. With  no  args,  will try cifs first, and if it fails nfs

The error message you see is in the casper script, although the typo appears to be fixed so you may also be using an older version.
Depending on the image and if you have console access you can try other debugging options.  E.g. adding debug= to the arguments and/or an option like break=bottom.
Debugging references

https://wiki.ubuntu.com/DebuggingCasper
https://wiki.debian.org/InitramfsDebug


You do not have an Atheros wireless card, so the ath9k.conf file is ineffective. Since the problem is only with your new home wireless, I suspect it's a configuration problem in the router.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, I have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection.

Make sure the router is set to automatic B, G, N  and, if it's capable, AC speeds, not locked to N and certainly not locked to AC since the Intel wireless device you have is not AC capable.

After making these changes, reboot the router.


After creating revocation certificate for OpenPGP key unable to locate it

GnuPG's --output option accepts both relative and absolute paths. If you just pass a file name, it will store the file in the current working directory. If you don't remember it's location any more, search your hard disk:

Using the GUI method of your choice
Try the locate command first, which uses an index, but might be out of date:

locate revoke.asc

Search the whole hard disk (which will take some time):

find / -name revoke.asc

If you don't find it (and still have access to the private key): don't worry, just generate a new one.


Unable to boot 18.04 on HDD after fresh install

Did you disable secure boot?
F2/F12/Del on startup


Download boot-repair live disk from here .And make it bootable through usb.After booted up click on Recommended repair option,it will reinstall your grub.You won't loss any windows files during this operation.


How do I get menu accelerator keyboard shortcuts to work in Terminal?

I just stumbled upon the answer...

Apparently Gnome Terminal is different from "normal" apps and has accelerators turned off by default? (Why is this?)

Anyway, the solution was to go to Edit menu -> Preferences -> General and enable the "Enable mnemonics" checkbox.

Also curious, why are they called mnemonics in this case but accelerators" in the official help documentation? Perhaps a consistent naming should be adopted to make it less confusing? I'd vote for "mnemonics" now that I'm aware of that term (I'd never heard of it before today); "accelerators" has too many other meanings.


website not working :-403 - Forbidden: Access is denied

I guess you are doing it wrong.

Should not be only this?

<Directory /var/www/public_html>
    AddHandler fcgid-script .php
    Options +ExecCGI +Includes +Indexes
    AllowOverride All
</Directory>

If only this does work, should se the fgci.conf on apache modules

Some error logging would be nice as well.


dpkg exit with error "cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory", how to fix it?

Open a terminal and type the following:

sudo mkdir -p /var/lib/dpkg/{updates,alternatives,info,parts,triggers}
sudo killall apt* software-center* dpkg
sudo apt-get update
sudo apt-get purge wine1.4 ia32-libs-multiarch
sudo apt-get upgrade

The first command gets rid of the "cannot scan updates directory" (along with the disaster of the rm -r), then we need to end any dkpg/apt instance to get rid of "Unable to lock" message. Third, lets clean the package cache, update the software list cache and upgrade.


Detecting when pppoe succesfully connect

As explained above, the solution is to place the script in /etc/ppp/ip-up.d and it will be run when the link is stablished.


What is the difference between crontab -e and nano /etc/crontab?

The crontab -e  command will edit the crontab for your current user. This means that you do not need to include the username in the crontab line. Each user's crontab is stored in /var/spool/cron/crontabs, under the user's name.

The format of a user specific crontab is:

# m h  dom mon dow  command
*   *   *   *   *   some_command

The crontab -e command will use whichever editor is set in your user's $EDITOR environment variable, which controls your default text editor for a variety of tasks. If that isn't set the first time you use the crontab command you'll be prompted to choose from a selection of available editors, nano is one of the choices on this list.

Editing /etc/crontab requires that you include a username that's running the command after the time setting part of the line.

The format of /etc/crontab is:

# m h dom mon dow user      command
*   *  *   *   *  someuser  some_command


German keyboard configuration: "STRG + ALT" shortcuts don't work

Check your keyboard settings

Click the top right symbol in the Panel, open the first entry of the popping up menu.

Open key settings.

Add a new keyboard.

Choose the right keyboard-settings. You can test them in the field below. Click "add".

To apply them push them upwards by clicking the arrow.

If this doesn't work you can reset everything by deleting this new keyboard-settings: Click them once and then click the "-".


MicroSD card is set to Read-only state. How can I write data on it?

Two possibilities, first is that being a hardware thing, as micro SDHC have a little notch you can easily notice which matches another notch in the reader and that basically just enables it in read-only mode. That you can't change, just try to use another reader or you could put a piece of silicon or tape on notch, easiest thing is to use another reader.

Second possibility is that being a file permission issue, in which case you can do the following :
In terminal, use these commands:

gksudo nautilus

This will launch nautilus in root shell and bypass all permissions.
OR:

sudo fdisk -l

This will give you a list of the drives on your system, figure out which drive it is in the list, easiest way is to look for the blocks as this is the space. It will probably be /dev/sdb or /dev/sdc, then

sudo chown -hR <your username> <the SDHC drive, /dev/sdb for example>

this will change ownership of the drive to you. OR:

sudo chmod -R 777 <the SDHC drive, /dev/sdb for example>

Though if you just execute the first command sudo nautilus it will save you all this trouble, but you'll have to do it every time you use the SDHC.

If all of this doesn't work, use this command :

sudo mount --options remount,rw <the SDHC drive, /dev/sdb for example, find it using fdisk -l>

If there's anything you don't understand just comment.


What usb wifi adapter can be used to watch streamed movies without disconnecting every 10 mins?

I would suggest upgrading Ubuntu and seeing if that solves your problem as I believe it will. However if you are not wanting to do this, I beleive that a bugs relates to you and some steps in the link provided can help your issue.

http://www.omgubuntu.co.uk/2011/01/realtek-rtl8192su-ubuntu-driver-fix

Also, If this does not fix your problem, you should update to 12.04


Unable to boot official Vagrant boxes for 20.04

This issue was caused by a change to the images: older images connected a serial console to output to a file, but this behavior was removed due to a user request.
A fix is in progress (originally here), but it has not yet been merged.
In the mean time, the simplest workaround is to create a serial port and redirect it to nowhere:
vm.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]


Fan speed goes up when opening GNOME Image Viewer

Your CPU is pegged and it's heating up when you open Gnome Image Viewer. The fan speed is automatically adjusted by your BIOS via AMD Cool'n'Quiet™ or some other similar motherboard feature. Open the System Monitor to see how much CPU the app is using. EOG doesn't work for me in 11.10 because of a few bugs and I've since moved to Mirage.


I can not install drivers for ATI Radeon HD 6770

The post-upgrade drivers are no more, you need to install the recommended ones (Catalyst 11.8) or download directly from the ATI site.

For more information check this question.


How to change the final downloaded video format with Video Downloader

Since it is based on youtube-dl you could change the snap and the request how it works. (as suggested by @andrew.46 )
But since I believe this is a bit too complicated, I suggest, that you install ffmpeg(if it isn't already installed) and then convert it to the format you want after you downloaded it.
The simplest way is: ffmpeg -i input.webm output.mp4
(Replace mp4 with the Container you wish).


No internet connection after ubuntu server 20.04 install

While running "apt-get update"
or something just add "-o Acquire::ForceIPv4=true"
something like:

apt-get update -o Acquire::ForceIPv4=true

but to solve this problem permanently create a file with "99force-ipv4 in /etc/apt/apt.conf.d/" directory and add following stuff:

Acquire::ForceIPv4 "true";


Having internal error on 12.04 with intel video

Type sudo apt-cache search xserver and see what is available. You can also type dpkg -l to list what you have installed. See if there is a related package available that you don't have installed.


Need help regarding dd command on Ubuntu app for windows 10

You can't.

WSL is not a complete environment. Notably, it lacks a Linux kernel.

WSL is an abstraction layer that allows execution of 64-bit ELF binaries on Windows. It does not provide the traditional Linux device access.

This may change somewhat with WSL2, which is HyperV-based virtualization solution.


The best you can do right now is:

boot from a LiveCD,
back-up all your data
test whether your drives are OK

sudo apt-get install smartmontools
sudo smartctl --scan
For all devices that come up on the previous command to a sudo smartctl --all /dev/XdY where X and Y are the letters that come up in the previous step

re-install.

Replace any drives that show a "fail"

Before you reinstall, have a look here so that this will not happen any more in the future, but that you might just restore a system back-up when something like that happens...


What log files can I examine if Launcher / Dash wont start?

Try ~/.xsession-errors and /var/log/Xorg.0.log


The only rsync option you have used that can potentially remove file is --delete-after but that deletes files from the destination, not from the source. This is true for all --delete options of rsync. The only option to remove files from source is --remove-source-files.

So your rsync command should not remove any file from source.

On a different note, the -h option is for help, which is doing nothing in your case, also you should look at the -a (--archive) option as you are already using most of the options it includes.

Also as you have many --include patterns, you should rather define the patterns in a file and use --include-from option instead to make the command line more readable and easily maintainable.


How can I use the site-package of python?

Simply when you install the site packages make sure you install them on both python systems.
For example if you want to install pygame on python 2 and 3:

apt-get install python-pygame # for python 2.x
apt-get install python3-pygame # for python 3.x

Also remember the command to start the Python 3 interpreter from the terminal is:

python3


Does not show any partition to install Ubuntu 19

You've got a single SSD/HDD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
You don't need to reinstall Windows...
Below, you'll find two different ways to solve this problem.
#Make sure to have a backup of your important Windows files!
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model #
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

Right-click the Windows Start Menu. Choose Command Prompt (Admin).
If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
Click the Start Button and type cmd
Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin)
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


BASH script - How to simulate user input for password

You should use 'expect' extension to Tcl. It is intended for such automation tasks and more. There is a whole book ( Exploring Expect) written about it
https://en.wikipedia.org/wiki/Expect


Get child process operation result from parent process

You can't do this.

When you start a new shell, it's an unrelated process and the parent can't "look inside" it to see what it has in memory (this is a security boundary of sorts). Its variables are not shared and not published where someone else can see them.

It gets a copy of the existing environment variables, but any changes it makes to them are for itself alone, and its children. There's no "backwards" communication until the shell exits, and all there is at that point is a single exit code.

When you're doing this interactively as you've shown, that's the end of the story. Your best bet is to save data into a file, which you can then read from or source back in to the parent. If you really can't use a file, I have an awful way of doing it right at the end, but I recommend rethinking what you're trying to achieve - it'd be nice to be able to make this work normally (and some other shells do have shared variables!), it's just not achievable here.

If you're making a program or shell script that runs non-interactively, some or all of source, eval, and printing out data to standard output may help you, as noted in an existing answer. If you exit the child shell, you can pass a single byte of information back in your exit code with exit 123, which you can read with $? in the parent.

If you really really need to migrate something out, here is a very nasty hack to achieve it interactively with no intermediate files:

$ bash
$ export a=2
$ sleep 60 & echo $!
2198
$ suspend
$ xargs -0 < /proc/2198/environ printf '%s\n' | grep '^a='
a=2
$ a=$(xargs -0 < /proc/2198/environ printf '%s\n' | grep '^a=' | cut -d= -f2-)
$ echo $a
2
$ [1]+  Done                    sleep 60

There are significant limitations here, particularly if you're not in control of the whole environment - a newline within an environment variable value could trick you into setting a value you didn't want, for example.

This works by exporting a so that it appears in the environment of subprocesses and then launching one (sleep 60 here), in the background (&), with the PID of sleep printed out (echo $!). When you suspend the inner shell, you can read the sleep process's environment variables given by its parent from the outside - those are public in the /proc filesystem - but they're separated by null bytes, so xargs -0 splits them up and printf '%s\n' outputs one per line. At that point there's a complete list of variables, and we can grep out the one we want, optionally chopping out just the value after the = with cut and setting it. The sleep will end on its own, which is what we see at the end of the transcript ([1]+ Done ...).

You'd need to do it all again if you wanted to pick up on a change to a in the child - and the child will never see a change that you make to a in the parent: all we've done is make another copy. The reason for the sleep process is that we can only see the inbound environment variables of a process, and not any of the shell's internal variable values even if they're exported.

I don't recommend doing this or relying on it, and I can't see any value in using it, but if you do end up in a situation where it's truly, vitally necessary then it should work.


Ubuntu 14.04 : Second display not detected. (Desktop computer / VGA)

Problem solved.

Here is how: A DVI to VGA adapter plugged to the graphic card's DVI jack. (It is sold nearly 6,00 usd in my neighborhood).

The problem was that my VGA jack is in the mother board. My Graphics card doesn't have a VGA jack built in ;)

Thank you very much for the inputs @Elder Geek! :)


can I redirect file as input to notify-send?

http://www.commandlinefu.com/commands/view/4460/pipe-output-to-notify-send

says

echo 'information overlord' | while read OUTPUT; do notify-send "$OUTPUT"; done


I think this may depend on how you send email (what client you are using). If you're sending it from command line using mail or mailx you can use -r and append the information like so:

mail -s "Subject" -r "Username <email@example.com>" recipient

Don't forget to put the part past -r in double quotes.


I was able to connect my redmi 1s directly w/o an issue. It was available in Devices in Nautilus.

I will suggest you to update your ubuntu

sudo apt-get update

Or simply run Software Updater and update ubuntu base and drivers.


Getting PowerTOP (v2.9) settings to apply at boot

I figured it out. I had a couple of lines in the /etc/rc.local file that made some power adjustments for the internal graphics card. Later I had disabled that graphics card in the BIOS (since I won't be needing it) and the files those lines were trying to write didn't exist (nor the directories). And since the first line of my /etc/rc.local file is #!/bin/sh -e the script quit on the first command that failed. After removing those lines, it seems my powertop changes are working!


12.04 KDE Stackexchange Stackapp / Widget

Have you looked at StackTray: The Stack Overflow tray application?

It's a free Debian application so it should be easy to install on a *ubuntu operating system. The instructions for installing StackTray are in this README. You would have to use sudo to run the installation commands in Ubuntu.


One of my partitions isn't shown anymore after I installed Ubuntu

Your E partition disappeared because Windows doesn't recognize ext4 file system. Everything's normal. You have correctly installed Ubuntu!


Will COMODO anti virus cover both OS in a dual boot

Windows can't access files on an ext4 partition which Ubuntu uses by default unless you install third party software on Windows to access files on ext4 partitions. For more information see How to read ext4 partitions on Windows? and Does an ext4 writer for Windows exist?.  Even if you took the trouble to install third party software to read/write ext4 in Windows, I still don't know if Comodo "likes" ext4. Comodo for Linux can read/write ext4, but I don't know if this functionality extends to Comodo for Windows, which is where you need Comodo the most. Google was not my friend this time when I tried to find out.

Another way to do it is to install ClamTK antivirus in Ubuntu from the Ubuntu Software Center. ClamTK can also scan files in Ubuntu for Windows malware. I am going to recommend doing it this way, because XP is unstable enough now that support for Windows XP has ended without complicating your XP system any further. If it works, don't fix it.


importing mysql backup into a mariaDB instance on ubuntu 14.04

You can import the file because MariaDB supports the MyISAM storage engine: https://mariadb.com/kb/en/mariadb/myisam-storage-engine/

You get the list of all supported storage engines by invoking SHOW ENGINES: https://mariadb.com/kb/en/mariadb/show-engines/


A useful tool to customize gtk theme is gtk-theme-config.

You can see here the greybird gtk theme wich has a blue scheme by default turned to purple and the gtk theme config at the bottom right corner.

Greybird gtk them wich has a blue scheme by default.

For install it in Saucy 13.10 and Trusty 14.04:

sudo apt-get install gtk-theme-config

For previous ubuntu releases:

sudo add-apt-repository ppa:shimmerproject/ppa
sudo apt-get update
sudo apt-get install gtk-theme-config

Source: http://www.webupd8.org/2012/09/customize-gtk3-gtk2-theme-colors-using.html

Impportant

Notice this will not work with the new default themes in ubuntu as explained here: http://www.webupd8.org/2014/04/ambiance-and-radiance-colors-theme-pack.html


Ubuntu Software Center not working; says the package catalog needs repair

Try

sudo apt-get update

to update your package list.
Then

sudo apt-get autoclean

to clean up any partial packages.
Then

sudo apt-get clean

to clean up the apt cache.

sudo apt-get autoremove

will clean up any unneeded dependencies.
If while doing this you can identify the broken package this code will very forcefully remove it.

sudo dpkg --remove -force --force-remove-reinstreq package name

Change package name to the real name of course.


Ubuntu Server LibreOffice Convert to txt Error

From the initial byte sequence 504b 0304 it's possible to deduce that the output is in the form of a zip archive.

In fact, a simple test with a minimal .doc file reveals that specifying --convert-to txt alone results in an OpenDocument Text file - but with a .txt extension:

:~$ soffice --headless --convert-to txt testdoc.doc
convert /home/steeldriver/testdoc.doc -> /home/steeldriver/testdoc.txt using
Overwriting: /home/steeldriver/testdoc.txt

:~$ file testdoc.txt
testdoc.txt: OpenDocument Text

:~$ zipinfo testdoc.txt
Archive:  testdoc.txt
Zip file size: 8764 bytes, number of entries: 15
-rw----     2.0 fat       39 b- stor 15-Sep-02 15:58 mimetype
-rw----     2.0 fat     1136 b- stor 15-Sep-02 15:58 Thumbnails/thumbnail.png
-rw----     2.0 fat     4065 bl defN 15-Sep-02 15:58 content.xml
-rw----     2.0 fat     8849 bl defN 15-Sep-02 15:58 settings.xml
-rw----     2.0 fat      894 bl defN 15-Sep-02 15:58 meta.xml
-rw----     2.0 fat    14890 bl defN 15-Sep-02 15:58 styles.xml
-rw----     2.0 fat      899 bl defN 15-Sep-02 15:58 manifest.rdf
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/toolpanel/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/progressbar/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/floater/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/statusbar/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/toolbar/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/popupmenu/
-rw----     2.0 fat        0 b- stor 15-Sep-02 15:58 Configurations2/menubar/
-rw----     2.0 fat      978 bl defN 15-Sep-02 15:58 META-INF/manifest.xml
15 files, 31750 bytes uncompressed, 6938 bytes compressed:  78.1%

In order to force plain-text conversion, it's necessary to specify an output filter as well as an extension:

:~$ soffice --headless --convert-to txt:Text testdoc.doc
convert /home/steeldriver/testdoc.doc -> /home/steeldriver/testdoc.txt using Text
Overwriting: /home/steeldriver/testdoc.txt

:~$ file testdoc.txt
testdoc.txt: UTF-8 Unicode (with BOM) text

Note this is still UTF-8 with a BOM: I haven't succeeded in finding a filter that produces plain ASCII. If you absolutely need ASCII there's always iconv e.g.

iconv -t ASCII//TRANSLIT testdoc.txt