Can I Install grub on an USB and make it a rescue disk?

The question is about installing GRUB on USB drive. Let's start with the questions first:

The command sudo grub-install /dev/sdb    (where sdb is my USB drive) should work when booted from the hard drive with USB drive connected. However, since GRUB puts its config files in /boot/grub, where those will go depends on what kind of Ubuntu installation you have in the USB drive.

If it is a live USB, the /boot/grub folder includes a loopback.cfg
and installing the rest of grub there may have unintended effects.
If you have a full installation of Ubuntu in a 8GB or larger USB drive, See more at
How do I install Ubuntu to a USB key? (without using Startup Disk Creator),
then GRUB should be installed at the time of Ubuntu installation. If
for some reason GRUB is not installed, you can mount the USB boot
partion (assuming sdb1) and specify where the rest of grub goes by

sudo mount /dev/sdb1 /mnt
sudo grub-install –boot-directory=/mnt/boot /dev/sdb

Yes, you can get a GRUB menu from USB drive provided you have a full Ubuntu installation in that USB drive.
No, update grub should not delete information from the internal drive. You can control which GRUB will be updated by using sudo chroot /mnt after mounting sdb1 to mnt.

Hope this helps.


Is their any way pinning location to unity dash?

Unfortunately their's no direct solution try to create your custom scope here is a question for how to create scope  and here a link for how to create on unity 8


How to fix: Unity not working at all (updates, upgrade, drivers, OpenGL)?

Worked for me (fixed Unity system bar and launcher):

  Reinstall all already installed packages in Synaptic related to searches libgl and glx.

May be needed first:

sudo apt-get purge fglrx fglrx-amdcccle    # or another fglrxs

But FGLRX drivers doesn't feel alright on my computer anymore, so goodbye FGLRX :( . No idea why.


Adding run as root for nautilus in unity

To add the option to run as root to the nautilus (Files) launcher:

Copy the .desktop file, representing nautilus in the launcher, from the global directory /usr/share/applications to ~/.local/share/applications

which is on 14.04 and 14.10 : nautilus.desktop:

cp /usr/share/applications/nautilus.desktop ~/.local/share/applications

and on 15.04 and 15.10 : org.gnome.Nautilus.desktop

cp /usr/share/applications/org.gnome.Nautilus.desktop ~/.local/share/applications

Open the file with (e.g.) gedit, look for the line:

Actions=Window;

Change it into:

Actions=Window;Open as root;

Add to the very end of the file:

[Desktop Action Open as root]
Name=Open as root
Exec=gksu nautilus

Save and close the file.
Install gksu, to be able to enter your password via GUI:

sudo apt-get install gksu

Finally, log out/in to make Unity "aware" of the local, edited .desktop file.

That's about it.

Note

In some cases, you might have some doubts on what is the correct .desktop file to edit. This question on nautilus is a good example, since nautilus represents itself in a different .desktop file in the launcher on different Ubuntu versions, while nautilus has multiple .desktop files in /usr/share/applications.

To be sure to edit the correct one, simply run:

gsettings get com.canonical.Unity.Launcher favorites

which will output a list of current .desktop files, used in the launcher.


How can I programmatically determine if a system is a desktop or a server?

Command

dpkg -l ubuntu-desktop

Result:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  ubuntu-desktop 1.287        i386         The Ubuntu desktop system

 - List item

  Cave-at

It will not work if someone installs the desktop without using ubuntu-desktop. But who does that?

  Documentation

Before 12.04, Ubuntu server installs a server-optimized kernel by default. Since 12.04, there is no difference in kernel between Ubuntu Desktop and Ubuntu Server since linux-image-server is merged into linux-image-generic.


How to set up automatic mounting of network share

You should read this

But the key part is this

  Add a line at the bottom of your /etc/fstab file that specifies:

  //$SERVER/$SHARE $MOUNTPOINT $FS_TYPE
  credentials=$SMB_CREDENTIALS,uid=$UID,gid=$GID


First an explanation of what PlayOnLinux is:

  PlayOnLinux is a GUI script engine that automates the Creation of wine prefixes, software installation, and creation of Launchers. It does not directly run any program. WINE runs the programs independent of PlayOnLinux. Once a prefix is created, PlayOnLinux could be removed with no effect on the installation of the Wine prefix.

PlayOnLinux does not run as root.
A script could be malicious. But unlikely if it is downloaded from PlayOnLinux's library.
PlayOnLinux does not run the program; Wine does. So closing PlayOnLinux has no effect on the program. PlayOnLinux doesn't even need to be running to Launch the Installed program.


Open the file explorer Files. Press Alt+F10 and select Preferences. You should see something like this.

In the Behavior tab, select Ask each time and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened.


Unable to install Opera browser on Ubuntu 17.04

Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
nano /etc/apt/sources.list.d/opera-stable.list

In the file that opens, paste this text:

# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)

Ctrl+O Save file.
Ctrl+X Close nano.

Continue running in the terminal:

wget -O - http://deb.opera.com/archive.key | apt-key add -
apt-get update
apt-get install opera-stable


Grub rescue unknown file system(changed to ntfs from ext 4)

You can just install Windows. It should erase GRUB and install its own bootloader.

First, if you have any files you want to keep from the computer's drive, stop now and ask for help. Continuing can delete them forever.
Boot your computer from the Windows install USB drive.
While installing if it shows the following error "    Windows Cannot be installed on this type of format"
Go back to screen which shows install windows screen.

Shift + f10
diskpart
disk list
select disk 0(In general hard disk will be in disk 0).
clean.
Exit.
Close it and continue installing OS
Let Windows install.


It's probably not the app itself but the GNOME Keyring asking you for the password to decrypt your stored passwords, for the sake of comfort use the same password for your keyring as you use to login to your box.


Open terminal and type alsamixer , after you do so you'll see the headphones output level. You can increase or decrease the level as needed.


I don't know how this could happen, due to lack of resources:

The only available Kali-patch is:
 Debian_cryptsetup_2:2.0.6-1_Kali_cryptsetup_2:2.0.6-1kali1.debian.patch and
can be found in debian.net.
The latest and only cryptsetup version available for Ubuntu 18.04
    (Bionic) is 2.0.2 and can be found in launchpad.net.
The latest Kali cryptsetup version that actually works can be
    found in Kali git repository here.

I tried combine all the above and do the same proccess as shown on this thread, but no luck.

Also, the Kali Binary(deb) of cryptsetup_2.3.1 has unmet dependecies on Ubuntu 18.04 and is broken.

Currently, with the available resources I belive that is not possible to make it work even for an oldest version (1.6.6), unless if an expert put his hands-on and write down some code.

To conclude, if you really want to use this feature, my suggestion is to switch into Kali-Linux distribution.


You say it came with 12.10. If it's still possible to re-install Ubuntu 12.10, you may want to do so.

I know I had problems trying to install the latest version of Ubuntu on my fathers computer as it is quite old, but managed to install an older version of Ubuntu and then update it by using the do-release-upgrade in the terminal.


Open a terminal and try to download it using the next command:

cd ~/Downloads && wget -c http://mirrors.lug.mtu.edu/ubuntu-releases/18.04.4/ubuntu-18.04.4-desktop-amd64.iso

-c option means continue. If your file is partially downloaded, its downloading will be continued.


Installing Miracle Cast on Ubuntu 18.04.2 LTS

Don't use ; to separate these: they will turn libraries into commands.

Use the following commands instead:

sudo apt-get install ubuntu-dev-tools autoconf libtool libudev-dev libsystemd-dev glib-2.0 libperl-dev libgtk2.0-dev libreadline-dev
libtoolize
aclocal
autoconf


How do I boot to a command line interface instead of a GUI?

Modify your file /etc/default/grub with

GRUB_CMDLINE_LINUX_DEFAULT="text"

and do sudo update-grub. The machine will boot in text mode.

To start the graphical interface you do

sudo service gdm start

Edit

Starting from Ubuntu 11.10 Oneiric, the default Display Manager is LightDM, so the preceding command becomes:

sudo service lightdm start


dpkg: unrecoverable fatal error, aborting: unknown system group

Try this:
Open a terminal and run:
sudo rm /var/lib/dpkg/statoverride
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo apt-get -f install


How to properly set up a network bridge using bridge-utils using wlan0 as the internet "source"?

You can do the same thing by forwarding packets from ethernet card to wireless card. In order to do that, [wlan0 - wireless card; eth0 - ethernet card].

Do this on your ubuntu machine.

ifconfig eth0 192.168.1.1 (or whatever you want)
Enable ip_forward by  echo 1 > /proc/sys/net/ipv4/ip_forward
Enable forwarding in IPTABLES by iptables -A FORWARD --in-interface
wlan0 -j ACCEPT
Enable NAT mode to connect to internet by iptables --table nat -A POSTROUTING --out-interface eth0 -j MASQUERADE

On your windows machine set IP to 192.168.1.2 and gateway to 192.168.1.1 (ubuntu eth0 ip address)

No need to create bridges


How do I grep in the content of a string variable?

Rather than grepping, perhaps just use cut. It'll be a lot faster than running a full regex.

STRING="upgrade http://wordpress.org/download/ http://wordpress.org/wordpress-3.0.5.zip 3.0.5 en_US 4.3 4.1.2"
echo "$STRING" | cut -d" " -f4

Outputs: 3.0.5

This might be a little more robust though (is grabs the version from the zip url):

echo "$STRING" | sed -n -e 's/.*wordpress-\(.*\)\.zip.*/\1/p'

If you want to store it back in a bash variable, just wrap that in quotes and backticks. The backticked part will execute first, leaving it as as string.

RESULT="`echo "$STRING" | sed -n -e 's/.*wordpress-\(.*\)\.zip.*/\1/p'`"

So as far as stripting this (per your comment) to look for upgrade at the beginning:

STRING="upgrade http://wordpress.org/download/ http://wordpress.org/wordpress-3.0.5.zip 3.0.5 en_US 4.3 4.1.2"

if [[ $STRING == upgrade* ]]; then
    VERSION="`echo "$STRING" | sed -n -e 's/.*wordpress-\(.*\)\.zip.*/\1/p'`"
    # do something else now
else
    # do something if this isn't an upgrade (optional)
fi


HDMI: TV crops 16:9 from graphics card, 1-2 cm of image borders missing

This is an undercan issue best being resolved from from setting on your TV. Look for a menu entry to control output screen size from where you may be able to allow adjusting the screen depending on the HDMI input signal.

The menu may be named differently, depending on your brand. For us a menu entry "Automatically adjust size" was the one needed for fully displaying the desktop. Sadly this setting may not always survive a power cycle of the TV set, and it may also be affected by other HDMI devices attached (such as a BD-player).


11.10 and above
The fully fledged Aero-snap is a compiz feature.
If compiz is too heavy/problematic for your PC, then you could use a modified window manager such as xfwm4

By dragging the windows to the top/bottom/left or right, the window will snap to that part of the screen.  Dragging via the titlebar will revert its original size.
The nice-side effect of using xfwm4 is that you get the nice GUI tweak tools to modify the keyboard/decorators etc:

xfwm4-settings - style/keyboard shortcuts/window focus model/window snapping control
xfwm4-tweaks-settings - window cycling/nice lightweight compositor and much more
xfwm4-workspace-settings - define the number of workspaces you will use.

how-to
The modified window-snap is available in my PPA
sudo add-apt-repository ppa:fossfreedom/xfwm4
sudo apt-get upgrade
sudo apt-get install xfwm4

recommendation
By default, this window manager does not integrate with the global menu.
Two suggestions -
Suggestion 1:
Remove the global menu if you use maximised windows alot of the time since the xfwm4 decorations do not integrate with the gnome-panel.
sudo apt-get remove indicator-appmenu

Use xfwm4 --replace as a startup application to use this window manager instead of metacity.
Suggestion 2:
Use maximus to remove the window decoration for maximised windows as per this Q&A:
Mutter: Global menu integration


Install Ubuntu 13.10 in dual boot with Windows 8.1

If your flash drive boots to the splash screen, you've just passed a major step. This means that your BIOS is set correctly. The problem could now lie in the installation media. I suggest remaking the USB drive with Universal USB Installer, or try a different USB drive. Make sure that the USB drive is formatted to FAT32. Also try to check your installation media, or just download the ISO again. If push comes to shove, you could always try burning the ISO to a CD or DVD and boot from there. Hope this helps.


I need to insert a large string in between two pattern using shell script

According to ramruma, you could try putting the long string in file and then use file contents insertion, as follows:

sed -i "/teststring/r file1.txt" index.html

From sed manual r flag is used for reading file contents.


How do I change the Ubuntu loading screen?

You can do this using the update-alternatives command. You'll need to do this twice -- once to select the graphical boot splash, and once to select the fall-back text boot splash.

Open a console window and run:

sudo update-alternatives --config default.plymouth

Enter the selection number for the line containing ubuntu-logo.plymouth.

Next, run:

sudo update-alternatives --config text.plymouth

Enter the selection number for the line containing ubuntu-text.plymouth.

Finally, update your initramfs. Run:

sudo update-initramfs -u

Reboot your PC, and you should see the Ubuntu boot splash return.


There are many ways you can do this. Here are two:

You can open the ISO file using the archive manager (right click on the file and select Open With Archive Manager). The packages are inside the pool directory.
Using the terminal, you can type this command:

sudo mount -o loop,ro "/path/to/the/image.iso" "/path/to/the/mount/point"

"/path/to/the/image.iso" is the location of your ISO file, while "/path/to/the/mount/point" is the location of an empty directory. After issuing the command, you will find the ISO files inside that directory. Again, the packages are inside pool.

Note that the pool directory contains some core packages. Other packages are not shipped inside the CD nor in any installation (because this would double size it).


How to manage available wireless network priority?

Apparently in 2014 NetworkManager team introduced such a feature -- to specify priorities for different networks.  There is now connection.autoconnect-priority.

This article provides lots of information on how to interface NetworkManager via nmcli.

For example with

nmcli -f NAME,UUID,AUTOCONNECT,AUTOCONNECT-PRIORITY c

you can list known networks and see their default priority to be 0. Now  I have run

nmcli connection modify HOME-WIFI connection.autoconnect-priority 10

to give my home WiFi higher priority. I have the same work WiFi points available at home as well, but need to connect to HOME-WIFI when I am home. That command heavily rewritten /etc/NetworkManager/system-connections/HOME-WIFI which added autoconnect-priority=10 into [connection] section - time will show if it works as it should.


How to prevent nvidia kernel module from loading Ubuntu 12.04 64 bit

The module name is "nvidia" (which shows up in lsmod), but the actual filename is nvidia-current.ko. Therefore you need to add to blacklist nvidia-current to /etc/modprobe.d/blacklist-nvidia.conf (filename does not matter). After that, run sudo update-initramfs -u.

Do note that this change applies only on the next boot. To unload the module in the current session, run sudo rmmod nvidia.

By the way, when you install Bumblebee, it'll automatically blacklist nvidia and nouveau. See Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


Which ubuntu flavour is better for an old lap?

Linux in general is MUCH lighter weight than Windows. If your old iron is a quad i3, that's more than enough to run Cinnamon or Mate (Gnome Desktop branches).

If you want to go ultra-light, Lxde or Xfce are both great and both lightweight. Lxde is newer, Xfce is more mature. You can install them both and then pick one to try out at boot time.

Depending on your GPU you might even be able to run Unity or KDE with all of the effects without any trouble.

Bottom line: if you have the disk space, install a few desktops that you like the look and feel of and see what happens. Chances are, they'll run fine.


DAR: Disk ARchive

  dar is a shell command that backs up directory trees and files

In summary - it can archive any folder tree and write slices - where each slice can be burned to disk using your favourite disk burner.

The advantage is that not all the slices need to be written out at once - while archiving, DAR will pause for you to write the slice before continuing.

How to install

sudo apt-get install dar

How to archive

dar -c /home/dad/test/archive -s 4700M -S 4695M -p -b -z -R /home/dad/Downloads -D

In this example, DAR will write a slice called "archive" of size 4695MB to the folder /home/dad/test.  The folder /home/dad/Downloads and everything in that folder including subfolders are compressed into each slice.

After each slice is written you write the file to DVD before deleting it.

How to list the contents

Use the format:

dar -l [name of archive]

e.g.

cd /media/cdrom
dar -l archive

How to extract individual files

Use the format:

dar -R [folder to extract to] -x [archive name] -g [file to extract]

for example:

dar -R . -x /media/cdrom/archive -g filetoextract.txt

More information, examples and tutorials: http://dar.linux.free.fr/doc/Tutorial.html


Bus 002 Device 002: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100

You will most likely need the video4linux support libraries.

Check if you have them already.

 locate v4l1compat.so

In my case, the output is /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so, yours might be different if you're on 32bit.

If it't not there, just install it:

sudo apt-get install libv4l-0

and try to locate it again.

Try to launch cheese with preloading the library

LD_PRELOAD=/usr/lib/your-path-to-lib/v4l1compat.so cheese

TLDP has some background information on shared libraries and their preloading.


Did you select "upgrade packages while installing" when you installed? If so, try installing without selecting that option. You can run updates after the install if it is successful.


How can I open a wine program if there's no option to "open with"

You can go the directory containing the .exe file either via the cd(change directory) command , for example

cd .wine/drive_c/windows/

or just right-click the directory in your file manager and click Open in Terminal (most file managers like Dolphin or Nautilus have this option).

And then enter the name of the .exe program you want to execute for example

wine regedit.exe

all done !

Note : you necessarily don't have to cd into the desired directory , you can simply run

wine .wine/drive_c/windows/regedit.exe

Have fun using ubuntu ;)


Nvidia-settings PowerMizer performance-mode on 12.04.4 64-bit

Solution for my GPU question: I contacted Nvidia directly via live-chat, because I wanted to know how to fix the issue above in the most safest and easy way. There are a lot of old guides on the net. Some work, some don't work. I need the risk to be minimal, since I am on a stable LTS machine here.

This is the workaround Nvidia provided me for Ubuntu 12.04.4 LTS 64-bit:

  It is expected that powermizer settings are not saved after reboot.

  As a workaround, you can set "prefer maximum performance" on the
  command line with nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1.
  Replace gpu:0 with gpu:N if there is more than one GPU.

  You can place that nvidia-settings invocation in ~/.xinitrc or some
  other startup script. (It must be done after X is started)

I recommend doing it via the "start-up programs" utility, because it's relatively easy and because it ships with Ubuntu 12.04 LTS. Copy and paste the command into it, save and it will load on the next restart.

Screenshots

1. Open the start-up program utility and add the recommended command and a comment into it:

2. Activate it afterwards:

3. Restart your computer and check PowerMizer via nvidia-settings:

Done. Maximum power! Btw, this also helps if Unity is running slow or if you have any form stuttering, tearing, slowdown or lag in apps when PowerMizer switched from a low to a high performance-level. Credit goes to Mike from Nvidia customer care. He responded to me within 24 hours after asking my question, which is great. I am posting this information to let other Ubuntu users know how the issue was fixed. Thanks!

Update for Maxwell GTX 900-series GPUs: See This spreadsheet. It details setting up overclocking. Search for Nvidia to get the necessary details.  This was tested on a GTX 970 on Kubuntu 14.10.


ubuntu wont find my tranmission to download torrents

Happens only on firefox. Select Choose Application > Navigate to /usr/bin > Select transmission-gtk > It will open with transmission.


How to download TeamSpeak 3 unto Ubuntu 12.04?

open terminal use the wget command to download

wget http://dl.4players.de/ts/releases/3.0.13.1/TeamSpeak3-Client-linux_x86-3.0.13.1.run


Why are all snaps being mounted and listed as block devices or partitions for Ubuntu 18.04?

When you type the command

snap list

you will get the output of actual installed snap packages. The reason is when a snap package is updated, the old version is kept (see snapcraft docu).

Citate from snapcraft docu

  Garbage collection then removes and purges any snap files, and their writable areas, for snap versions prior to the one that has just been updated — meaning that, at most, two versions of a snap will be present on the system. This saves disk space without compromising the ability to revert the snap to a previous known-good state.

Explicitly removing a snap from your system will also remove the code and purge the data for all prior versions.

For instance you have got installed more than one versions of gnome-calculator.

In case you only need the newest version, you can use

sudo snap remove gnome-calculator --revision <verison to be placed>

Using the command

losetup -a

shows you the mounted snaps (loop devices)

If you want to delete the double ones, type

sudo losetup -d /dev/loop<loopnumber>

It seems to be an error of the snap code, since all older been kept in the /var/lib/snapd/snaps file.


What's this strange message that's flooding .xsession-errors?

The message is almost certainly unrelated to the freezes. It is a message which is the result of a programming error, either in nautilus itself, or in one of the plug-ins. The message itself doesn't say enough on the console to determine what is the actual cause of it. To figure that out, some more technical debugging is required.


When I try and do an update I get errors, reporting unsigned repository files. How do I fix this?

I've had similar errors caused by trying to manually copy /var/lib/apt/lists/ form one machine to another.

Try moving all contents from /var/lib/apt/lists/ to /tmp/listsbak/ then running apt-get update

mkdir /tmp/listsbak/ && sudo mv /var/lib/apt/lists/* /tmp/listsbak/ && sudo apt-get update

If the newly downloaded lists are throwing the same errors perhaps include in your question or a comment your machines /etc/apt/sources.list and any list files in /etc/apt/sources.list.d.


Are there any maintained, always up-to-date, repositories for apt-get?

NodeJS and NPM are not representative of typical packages.
Node JS uses the semantic versioning system for identifying releases.
Under this system the 0 "major" number in 0.10.29 indicates that it is a new project undergoing a rapid rate of development,i.e. from the semantic versioning docs

  Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

The NodeJS version 0.10.29 came out mid last year and so it is not that old in terms of time, although in the case of this particular package alot of changes have occurred in that period, so for that reason I use a PPA for installing newer versions of node and NPM - but its not accurate to say Ubuntu packages are rarely updated based on what you have seen with NodeJs.

Depending on how "cutting edge" you want to be you may find the official Ubuntu repositories don't have the newest versions of the programs you want, its typically pretty trivial to find a PPA hosting packages with newer version, and if you are willing to do the work and deal with the technical difficulties open source packages can be compiled and installed from source.


How to install debian on ubuntu 12.04 without uninstalling ubuntu?

Without knowing how your hard drive is set up my assumption is that Ubuntu is the only OS on your hard drive and you want to add debian as a separate OS that you can boot into.

What you need to do:

Shrink your Ubuntu partition using a tool such as gparted
Write a Debian ISO do a USB or CD
Boot into that USB/CD (much like you would have done for Ubuntu) and install on the newly made empty space (from step 1)


manage bandwidth using trickle

Check out this link.

With this command, the following parameters we want to manipulate

-s - standalone mode
  -u - upload rate

-w - window length

Additionally, to see the progress chose -v - verbose

trickle -s -u 100 -w 10 scp ./somelarge local file dajavex@myip:/home/dajavex/mytofile

After I enter my password the process starts. the parameters I ran -sv, provide these results at first, and then lower as time progresses. (see the last line is the section from SCP)

scp: [trickle] avg: 0.20 KB/s; win: 0.20 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 1.83 KB/s; win: 1.83 KB/s
scp: [trickle] avg: 1.83 KB/s; win: 1.60 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 15614.54 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 15613.25 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 6242.80 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 4024.28 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 3032.70 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 2382.57 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 1903.49 KB/s
scp: [trickle] avg: 0.23 KB/s; win: 0.23 KB/s
scp: [trickle] avg: 3.46 KB/s; win: 1628.55 KB/s

                                            0% 2208KB   2.2MB/s   05:13 ETAs

The file I started with is approximately 700 MB.
As the file uploaded the transfer rate slowed, as shown:

scp: [trickle] avg: 87.71 KB/s; win: 3214085.75 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214084.41 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214082.28 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214079.73 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214077.85 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214076.45 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214075.61 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.71 KB/s; win: 3214074.61 KB/s
scp: [trickle] avg: 0.5 KB/s; win: 0.5 KB/s
scp: [trickle] avg: 87.70 KB/s; win: 3214074.59 KB/s
                                            1% 8864KB 104.0KB/s 1:49:51 ETAs

SCP estimated the time to transfer file inhouse from one server to another to be approximately 1 hr 49 minutes 51 seconds.

The window (-w) is what should be permitted +/- kb variance in either direction.

-t = time in seconds for smoothing

-l = lenth of packets for smoothing

So I would try the following:

/usr/bin/trickle -s -u 1000 -d 1000 -w 1000 -t 5 -l 500 acd_cli upload --remove-source-files /Store/


Can't browse samba network after upgrade 14.10 to install printer

By filling in the name or IP address of the Windows machine?  ;-)


How to check if something was written to /dev/log?

I think handler = SysLogHandler(address='/dev/log')

might be what you are missing. you should find output in /var/log/syslog.

Source: https://stackoverflow.com/questions/3968669/how-to-configure-logging-to-syslog-in-python


pip is installed when you have either python2.x or anaconda installed.
You can install anaconda from this link

Once you have got the installer run it like this

bash ~/Downloads/Anaconda3-2.4.0-Linux-x86_64.sh

After installation pip is also installed

which pip
/opt/anaconda2/bin/pip


12.04 and later
From the Gear, choose System Settings

Double click the Appearance icon

Click the behaviour tab and then toggle the autohide option...

You can re-reveal the menu by pushing onto the left-hand side of the window or the top corner depending upon which option is shown as per the picture.


From your description, I guess things are pretty messed up already. If you want to give a try to recover any lost partition then give a try to testdisk utility which is free to download for linux as well as windows. EFI or any other partitioning structure can only be modified on a raw disk without any logical partitioning. If things were working for you previously then EFI is not what is bugging you.


How to set default Home Music folder in Ubuntu 16.04

How does one set a user's home Music (and also Documents, Pictures,
  Videos, etc.) folder to a directory on another local partition?

Create a new "/home" partition, copy folder and files from your existing home directory to the new partition an mount the partition at your home directory. Or do so specially with a music partition an mount it to your existing /home/music directory.


How to share music through DAAP using Rhythmbox?

Nothing else needs to be done. Rhythmbox DAAP works as soon as the plugin is enabled and the "Share my music" option is enabled in the plugin configuration.

However, your client MUST BE IN THE SAME NETWORK AS THE SERVER. This is, of course, a no brainer, but I just got tricked from the several networks available at my workplace.


If you used install.sh, without any options, to install rEFInd from OS X, then the rEFInd binary and support files ended up on your EFI System Partition (ESP), which OS X does not mount by default. Given your plans, the easiest way to access it is to wait until after you install Ubuntu. If you install Ubuntu in EFI mode, the ESP will be mounted at /boot/efi, and rEFInd will be in /boot/efi/EFI/refind. You should have no problems modifying the files from Ubuntu, although you'll need to use sudo to do anything with those files.

Alternatively, you can mount the ESP in OS X. There are several ways to do this; one is:

mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP

Note that this example assumes that your ESP is /dev/disk0s1, which is the default location for the ESP on Mac systems. If you've repartitioned your disk from scratch with non-Apple software, it might be somewhere else. You can check with diskutil, gdisk, parted, GParted, or other tools to be sure you're using the right partition. (OS X's Disk Utility deliberately hides the ESP, though, so it's useless for this task.) Once you mount the ESP like this, rEFInd will be in /Volumes/ESP/EFI/refind.

One more point: Before proceeding with your Windows installation, you may want to read this question and its answers. If you created any FAT partitions with Disk Utility, that tool probably turned your disk into a hybrid MBR, which is an ugly and dangerous hack used by Apple to enable BIOS-mode booting of Windows. This might indeed be necessary, but Windows 8 and later often boot fine in EFI mode on Macs, and to do this, the disk must not have a hybrid MBR. Understanding the interactions between boot mode (EFI vs. BIOS) and partition table type (straight GPT, GPT with hybrid MBR, and straight MBR) will help you keep your hair as you set up a triple-boot on a Mac.


Grub installation and Dell recovery partition

Installing grub to the mbr will not affect the partition table, so the recovery partition will remain intact and an entry for the recovery partition will be automatically added to the grub menu so that you can boot from it if needed.


Install gconf-editor if you don't have it.  sudo apt-get install gconf-editor
Under Apps-compiz-1-plugins-unityshell-screen0-options set execute command to whatever you want it remapped to be.

One example could be Alt.  If you want to set it to something that is already occupied(in the case of this example Alt, you may need to unset that shortcut in keyboard shortcuts first).

Reports indicate that setting it to nothing is ineffective.  I would recommend setting it to something you don't anticipate using.


Change CTRL+ALT+BACKSPACE to restart X server

There are two steps to requesting a feature like this.

Has somebody already requested it?
Take a look for similar 'Wishlist' bugs in the upstream bug tracker as well as Ubuntu's bug tracker at (launchpad.net). If there is already a bug, read it. If the bug is still open, subscribe to it.

If you are the first, then file the Wishlist bug

Um...be aware that most upstream developers are often volunteers - they work features that interest them, and they tend to refuse (or ignore) requests for features that do not interest them.
Rather like agreeing to help paint your neighbor's fence - you might agree to do it out of altruism...and you might get bored and drift away from the project after a few minutes.
Of course, if you are skilled and wish to code the feature yourself, that's a different story!


Few application icons not appearing in Ubuntu Dock after upgrading to Ubuntu 17.10

Try this method in an Xorg session, not sure whether it would work in a Wayland session.

Launch one such application, say Terminator, whose correct icon is not seen in Ubuntu Dock.
Run xprop WM_CLASS in Terminal. The cursor should turn into a crosshair.
Place the crosshair over Terminator and click. You should get a WM_CLASS string for Terminator.
Open Terminator's .desktop file and add the following line

StartupWMClass=OBTAINED-VALUE

In place of OBTAINED-VALUE put a value you got from step 3 without any quotes.
Save the .desktop file.


Force Alt + Tab switcher to display applications from active workspace

For 12.04
By default the switcher in 12.04 only shows the applications in the active workspace.

For 11.10
The method described below does not force the Alt + Tab switcher to display applications from the active workspace but instead, display those applications next to each other. This would mean that you can switch to it relatively easily compared to switching between applications in all the workspaces.

You can change the behavior of the Alt + Tab switcher. There is an option in compizconfig-settings-manager  that lets you group the applications together from the active workspace.

To install CCSM, run the following command in a terminal:

sudo apt-get install compizconfig-settings-manager

What are some of the issues with CCSM and why would I want to avoid it?

To enable the setting, click on Ubuntu Unity plugin and select Switcher tab and tick Bias alt-tab sorting to prefer windows on the current viewport.

This will ensure that the applications from the same workspace will get grouped together in the window switcher.


What is the username and password of the default user in the Live DVD?

Try username ubuntu, password blank.
Sometimes this happens, don't know what triggers it.


Boot, How to run my service **after** Network Manager?

If you are running a system with systemd, check out this post: https://unix.stackexchange.com/a/126146/130303
If you are running an "older" ubuntu version (14.04), check here: https://superuser.com/a/248671


I have been wondering about this too, so far the only way I have been able to find to get a fully transparent panel in 14.04 is with this theme:
http://satya164.deviantart.com/art/Gnome-Shell-Elegance-Colors-305966388


Mediascanner-extractor consuming all RAM in Ubuntu 16.04

I'm also running 16.04 and had a problem with this process just today. It wasn't smashing my RAM or swap, but mediascanner-service-2.0 and mediascanner-extractor-2.0 were preventing me from safely ejecting a USB drive with a lot of photos on it.

Attempts to pskill the processes were immediately followed by the process restarting and continuing to hammer the drive. I used pstree to see what was calling mediascanner-service-2.0 and found that it was something called upstart, which was entirely unknown to me before this problem arose. With what little investigation I've done, I gleaned that upstart appears to be in charge of running various jobs and keeping them running.

I found the upstart configuration for mediascanner-2.0 at:

/usr/share/upstart/sessions/mediascanner-2.0.conf

It contained the following:

description "Media Scanner"
author "James Henstridge <james.henstridge@canonical.com>"

start on started dbus

respawn
exec /usr/bin/mediascanner-service-2.0

Needless to say, the respawn command is apparently what instructs upstart to restart mediascanner-service-2.0 (which calls mediascanner-extractor-2.0) whenever I killed it.

Someone in #ubuntu on irc.freenode.org gave me this solution:

echo manual > ~/.config/upstart/mediascanner-2.0.override

This will override the aforementioned configuration, telling upstart to ignore start and stop commands for mediascanner-2.0, leaving the program and its configuration present, but stopping it from running and scanning everything automatically.

You can read more about upstart and its configuration here:

http://upstart.ubuntu.com/cookbook/

Since you're on the same version as me, I suspect this solution will work for you as it did for me.


Updating snap, flatpak and appimage through Ubuntu(Gnome) Software and unified cli?

The unified interface you're talking about is called PackageKit, and it's actually what powers GNOME Software on all distributions. It's a middle-layer software that sits between the package system of a distribution and front-ends like GNOME Software or KDE Discover.

Flatpak and Snap aren't yet supported by PakageKit. However, you can install plugins for GNOME Software to manage, install, and update Flatpaks and Snaps through GNOME Software (apt install gnome-software-plugin-flatpak gnome-software-plugin-flatpak).

If you disable PackageKit background service, your system will stop updating packages automatically.


How to set up Transcend StoreJet 25M3 1TB USB 3.0 external hard drive to backup an ext4 file system?

Unless you're using the external drive on Windows computers, I would reformat it to ext4. You can either use the command you've cited or use the graphical frontend GNOME Disks, which is installed on Ubuntu by default.

For backups, I prefer rsync. The Arch wiki has a great article on how to do a full system backup with rsync.


Create UEFI bootable USB stick to install Windows AND Ubuntu from it

For EFI booting move all MS content under /EFI to another folder, call it /EFI.ms for example, with BOOT and Microsoft subfolders; this is to disallow certain UEFI firmwares to force boot Windows when they see it. Now under the EFI folder copy the BOOT and Ubuntu folders created for your bootable stick. Under /EFI/Ubuntu append this menu entry to the file grub.cfg you'll find there:

menuentry "Windows 8.1 EFI Setup" {
    insmod ntfs
    chainloader /EFI.ms/Microsoft/Boot/bootmgfw.efi
    boot
}

Make sure you know which folder is which in case your Ubuntu files got replaced after you added the Windows image, I mean the /EFI/BOOT folder; it may contain two files for Ubuntu, bootx64.efi and grubx64.efi; those come from /EFI/Ubuntu folder, I think bootx64.efi is copied from shimx64.efi.

For MBR style booting from the same USB stick, append this entry to the txt.cfg file under /isolinux:

label w81
    menu label ^Setup Windows 8.1
    COM32 chain.c32
    APPEND fs ntldr=/bootmgr


GPU Very limited vertex buffers (I think that's the problem...)

Try running Blender with software rendering. It might be slower than using hardware acceleration, but it avoids many driver bugs. The official Blender.org releases contain a script to run with software rendering: blender-softwaregl.


Xubuntu 13.10: I have to choose beteen: no sound Vs no shutdown

I solved it by disabling speech dispatcher

sudo update-rc.d -f speech-dispatcher remove

but now, the sound notification bar is missing, so i can't slide to change the sound, I can do so from my keyboard though.


How to prevent users from reading files but the webserver should still be able to read

You can chown the respective folders to a group of which the webserver is a member, but both users are not. Lets assume, the server is running as user www-server, the users are called user1 and user2. Then, if there isn't a suitable group yet (usually there is), create a new one and add the webserver user to it:

sudo addgroup www-private
sudo adduser www-server www-private

Now, for each user the private folder should be chowned so that the owning user is the respective user, and the owning group is the one of the webserver:

sudo chown user1:www-private /path/to/folder/of/user1
sudo chown user2:www-private /path/to/folder/of/user2

The permissions can now be set accordingly, so that the user has write access to his own folder, the webserver has read access and any other user has no access:

sudo chmod 750 /path/to/folder/of/user1 /path/to/folder/of/user2

If I remember correctly, this should give you the desired result.


(If you're running  apache server at port 80). UFW parses the rule in sequential manner, so when the rule matches i.e you allow anyone from anywhere to access your 80 port, as the match is found, you're packet is accepted. It follows the first-match policy.

So now try again and configure it, if problem persist, write a comment below . !


I use Pandora from the terminal. This would be a great scenario for this setup. You can ssh to your headless box that is connected to your sound system and run Pandora from the CLI.

Install Pianobar and make sure your sound devices are setup for outputto the stereo.

Lifehacker has a good writeup:

http://m.lifehacker.com/5713551/pianobar-is-a-flash+free-pandora-player-inside-your-terminal

Simple interface too, you can browse your stations and everything...


Why does a process i executed die when the terminal is killed

Every process has to have a parent process (to collect exit status, at the very least). see man 2 wait. If a parent process dies, its children are sent a SIGHUP signal (see man 7 signal). SIGHUP is a catchable signal, but if the child doesn't catch it, the default action is to kill the child process.

See man nohup to keep things going.


Is it possible to use an alternate CD as LiveCD?


If your actual issue is that your Microsoft keyboard gets recognized as a joystick, you are not alone, it affects several people.

My solution for that is to download this file and save it as /etc/udev/rules.d/51-these-are-not-joysticks.rules. You can run this command on a terminal:

sudo curl -o /etc/udev/rules.d/51-these-are-not-joysticks.rules \
  https://gist.githubusercontent.com/denilsonsa/978f1d842cf5430f57f6/raw

Link to my GitHub Gist containing the file: https://gist.github.com/denilsonsa/978f1d842cf5430f57f6


How to run "sudo apt-get update" through proxy in commandline?

In some releases sudo is configured in such a way that all environment variables all cleared when running the command. To keep the value for your http_proxy and fix this, you need to edit /etc/sudoers, run:

visudo

Then find a line that states:

Defaults env_reset

and add after it:

Defaults env_keep = "http_proxy ftp_proxy"

Things will start working as expected.

Thanks to kdogksu in the Ubuntu Forums for finding the solution for this.

In order to not only fix apt-get but also graphical X11 utils as e.g synaptic,mintintall, ...) the following line in /etc/sudoers should do the job :

Defaults env_keep = "http_proxy https_proxy ftp_proxy DISPLAY XAUTHORITY"


run script when modem manager detects modem

I figured it out.

Udev is meant for short tasks, slowing down the script prevented the rest of the system from recognizing the modem had been plugged in. According to the udev manual

  Add a program to the list of programs to be executed for a specific device. This can only be used for very short running tasks. Running an event process for a long period of time may block all further events for this or a dependent device. Long running tasks need to be immediately detached from the event process itself. If the option RUN{fail_event_on_error} is specified, and the executed program returns non-zero, the event will be marked as failed for a possible later handling.

Just detatching the process doesn't work, instead I was able to use at. See this answer for examples on how to use at: Conveniently schedule a command to run later?


How to sort processes properly in System Monitor

There seems to be an "All Processes" option in the hamburger menu on the right hand side. If I click this and disable "Dependencies" I get the expected behaviour.


Toshiba laptop won’t boot from SSD after installation

I had a Toshiba Satalite C55-B series computer that gave the same error.
It required a system recovery partition to be first on the HDD, and the UEFI partition to be second.
It can be empty but had to be there.

Create a 1 GB partition formatted NTFS. Then, use the remaining space to install ubuntu.

Note: if your EFI firmware does not have OS boot options, you have to move and rename grub's file in the EFI partition.
/EFI/ubuntu/grubx64.efi has to be copied to /EFI/boot/ and renamed to bootx64.efi.


How to discover what file in the dev/ directory is related to the SD card reader of my laptop?


16.04 & 16.10 - Login Screen Locks, cannot login as another user until I logout

There are rare occasions where an application or screen savor might not show the regular screen.  When this happens there are two ways the two of you can log in.  One way is using either the Gear icon at on the top right hand of the screen or scrolling to the name on the Login screen.

An alternate way (Method #2) is to switch to the users DISPLAY.  The GUI displays start with F7 and move up as needed... F8, F9, etc.  You can change displays by holding down the Cntrl+Alt and hitting the F# key of the display you want.  You will see the user's name as the login option of his display.


Use negation.

find . ! -type d -print

Also see http://mywiki.wooledge.org/UsingFind


Try going to System Settings > Power

Change "Suspend when inactive for" to "Don't suspend".


From the program main window access tools menu > options > file types.. you will find many files extensions delete MP3 extension and save then restart the program. Good luck!


Fusuma
I am using XPS 15 with Ubuntu 18.04 (X.org). I have managed to get multi-gestures working for me. Kohei Yamada has developed an application called Fusuma to enable multi-touch gestures on Linux. It requires you to install Ruby on your machine if it isn't already installed.
Follow the instructions from  fusuma GitHub's Readme page or you could follow these steps which worked for me:
First of all check if your current user is part of the input group. You can do that by
groups $USER | grep -w input # To check
sudo gpasswd -a $USER input  # To add

Then log out and log back in. Now install xdotool and libinput-tools.
sudo apt install libinput-tools
sudo apt install xdotool

If you haven't installed Ruby you can do that now:
sudo apt install ruby

Now install fusuma
sudo gem install fusuma

Deciding your gestures
This is basically creating a .yml file with the desired configuration. If you want standard gestures you can follow these instructions or feel free to tweak around to get desired gestures.
Go to your config folder in home directory.
cd ~/.config

Now create a folder named fusuma
mkdir fusuma
cd fusuma

In there create a file called config.yml
touch config.yml

Now you can use your favourite text editor to enter the contents in this file.
nano config.yml

Copy and paste the following instructions if you are using GNOME, which is the default environment in 18.04.
swipe:
  3:
    left:
      command: 'xdotool key alt+Right'
    right:
      command: 'xdotool key alt+Left'
    up:
      command: 'xdotool key super'
    down:
      command: 'xdotool key super'
  4:
    left:
      command: 'xdotool key ctrl+alt+Down'
    right:
      command: 'xdotool key ctrl+alt+Up'
    up:
      command: 'xdotool key ctrl+alt+Down'
    down:
      command: 'xdotool key ctrl+alt+Up'
pinch:
  in:
    command: 'xdotool key ctrl+plus'
  out:
     command: 'xdotool key ctrl+minus'

threshold:
  swipe: 0.4
  pinch: 0.4

interval:
  swipe: 0.8
  pinch: 0.1

Note that the gestures that this configuration has created for you are the following:
Mult-touch Gesture → Action
3 Fingers - Left → Go Next on Browser
3 Fingers - Right → Go Back on Browser
3 Fingers - Up → Show all Windows
3 Fingers - Down → Close Exposé (Esc
4 Fingers - Left → Next Deskto
4 Fingers - Right → Previous Desktop
4 Fingers - Up → Next Desktop
4 Fingers - Down → Previous Deskto
After this you can run the command in terminal to test if it has installed
sudo fusuma

nothing will happen in the terminal. Just start using your multi-touch gestures - swipe away on your touchpad.
Now all you have to do is add Fusuma and the command for it in your start-up applications.


I was told on Launchpad to test a mainline Kernel. How do I do that (with NVIDIA drivers)?

Mainline kernels are compiled from recent sources using the Ubuntu configuration, so any bugfixes will first appear in the mainline kernel. Since the kernel package receives a lot of bug reports, the developer team cannot spend a lot time on all bug reports. Your reported bug may be fixed before, so that's why they tell you to test it with the most recent kernel.

To install a mainline kernel:

Find the latest kernel on http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D. At the moment, it's http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.1-rc9-oneiric/
Create a new directory for saving the downloaded kernel packages (e.g. ~/kernel-test)
Download the linux-headers*_amd64.deb, linux-headers*_all.deb and linux-image*_amd64.deb files.   Replace amd64 by i386 if you're running a 32-bit OS, and pick the "pae" version if you want it.  You can check if you're running pae now by looking in /proc/cpuinfo.
Open a terminal and install the downloaded kernel packages:

sudo dpkg -i ~/kernel-test/*.deb

Reboot and the new kernel will automatically be selected. If it won't boot, either try pressing Ctrl + Alt + Del or using the power button. The next boot, the menu will appear. If not, hold Shift after the BIOS POST.

To uninstall the mainline kernel, simply uninstall the related packages:

sudo apt-get purge linux-headers-3*-generic linux-image-3*-generic

Replace * by the package names of the mainline kernels. It matches the file you've downloaded.

Be aware that the mainline builds are compiled with an older toolset which has some side-effects like being unable to unload kernel modules after loading them (this applies to DKMS packages like nvidia-current)


If it's just the memtest options you don't want, you can simply remove that package:

sudo apt-get remove memtest86+

You can also control the generation of the submenus (the "Advanced options for ..." entries), and the recovery options by editing /etc/default/grub. From the grub info documentation:

'GRUB_DISABLE_RECOVERY'
     If this option is set to 'true', disable the generation of recovery
     mode menu entries.

and

'GRUB_DISABLE_SUBMENU'
     Normally, 'grub-mkconfig' will generate top level menu entry for
     the kernel with highest version number and put all other found
     kernels or alternative menu entries for recovery mode in submenu.
     For entries returned by 'os-prober' first entry will be put on top
     level and all others in submenu.  If this option is set to 'y',
     flat menu with all entries on top level will be generated instead.

For more details on the grub configuration, check out:

 info -f grub -n 'Simple configuration'


How I type @ with a Latin American keyboard?


Your better off install 64bit version of 13.04 and finding out why your mouse doesn't work. Does it work on the live CD? Can you show us log output from Xorg.log or dmesg.

Start with wired mice, and work up to wireless mice. What type of mouse/mice are you tryng to use? Almost every PS/2 mouse works but I don't even know where you would buy one any more. Could it be that your PS/2 Mouse it to old?

Start by making sure the kernel sees you mouse. Check in /var/log/messages for any errors. Then see if X sees your mouse. /var/log/Xorg.log should have lines starting with EE if there are any problems.


Flashplugin works on youtube but not on website I belong to to watch training videos

Often this can be caused by conflicting flash plugins. YouTube works with most of the Free software alternatives to Flash, but many other custom video players do not.

Make sure you've removed any of the browser plugin components of any other players (browser-plugin-gnash, for example), so that the non-free plugin is loaded.


Nautilus "locks up" when browsing directories with version control, many files

One way to at least reduce the number of io operations is to disable (some of) the preview features in Nautilus. Open the Preview tab in File Management Preferences by clicking on Edit->Preferences. The previews works great for a limited amount of files, but it doesn't scale that well.

I reckon Count number of items: might be the culprit in your case, as it will go through all the directories with hundreds or thousands of files and count them all. Similarly, previewing text files will be heavy with thousands of them and so forth.


Per the man page for w.procps:

trusty (1) w.procps.1.gz
Provided by: procps_3.3.9-1ubuntu2_i386 bug

NAME
       w - Show who is logged on and what they are doing.

...

ENVIRONMENT
   PROCPS_USERLEN
          Override  the default width of the username column.  Defaults to
          8.

   PROCPS_FROMLEN
          Override the default width of the from column.  Defaults to 16.

For example,

w3@aardvark:~(0)$ w
 13:30:24 up 6 days, 20:32,  3 users,  load average: 4.08, 3.43, 3.12
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
w3       tty1                      19Nov16 25:51m  0.40s  0.38s -bash
w3       tty7     :0               19Nov16  6days 11:37m  2.41s /sbin/upstart --user
w3       pts/16   192.168.100.254  13:20    9:34   0.25s  0.25s -bash
w3@aardvark:~(0)$ env PROCPS_FROMLEN=48 w
 13:30:36 up 6 days, 20:32,  3 users,  load average: 3.68, 3.36, 3.10
USER     TTY      FROM                                             LOGIN@   IDLE   JCPU   PCPU WHAT
w3       tty1                                                      19Nov16 25:51m  0.40s  0.38s -bash
w3       tty7     :0                                               19Nov16  6days 11:37m  2.41s /sbin/upstart --user
w3       pts/16   192.168.100.254                                  13:20    9:46   0.25s  0.25s -bash


Internet access when setting 2 NICS using Iptables

My proposal is to do following

nic to the internet / eth0

address: 192.168.1.101
netmask: 255.255.255.0
gateway: 192.168.1.1

nic to the lan

address: 192.168.2.1
netmask: 255.255.255.0

pc connected from lan to

address: 192.168.2.100
netmask: 255.255.255.0
gateway: 192.168.2.1

You do, but for complete manual

Enable IP forwarding. This is done either by using

echo "1" > /proc/sys/net/ipv4/ip_forward

After that

add a rule telling to forward the traffic

sudo iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

Because you router do not known for network 192.168.2.0/24 we must do masquarade

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

On this way traffic from eth0 can go to rest of the network through eth1.


AMDOverdriveCNTRL has not been updated in years.  You could try to ask questions on their sourceforge page.  The installer requires wxWidgets 2.8, but 3.0 is installed and it does not like that.  You could download the source code and attempt to compile it, but I wasn't having much luck with that either.


How to set up systemd after failed upgrade

This is not a matter of systemd but of sddm. Had a similar issue, which turned out to be a missing sddm.conf. Your installation is recoverable, just needs more details from your side in order to find out the best approach.

Can you reach a virtual terminal by simply pressing ALT+CTRL+F1 ? (return with ALT+F7) - This should be the case if you can see just the cursor upon boot with the current issue..

If so, just log in there with username/password (password is not echoed!)

then type `startx'

this will start the desktop-session

then simply install sddm-theme-maldives:

sudo apt-get install sddm-theme-maldives

Then go to systemsettings and select that theme.
This will invoke the creation of the sddm.conf in /etc/. Then just reboot
to recover and report back.

Since you asked for systemd:

sudo systemctl disable sddm # disables SDDM for maintenance

sudo systemctl enable sddm # enables SDDM after maintenance

The issue got also covered in Ubuntu-Forum (Oct.2015):

http://ubuntuforums.org/showthread.php?t=2299714&page=2&s=55054a7434483a59376b5851fb269374&highlight=sddm

May  be helpful for somebody having other DE's (Gnome, Ubuntu) coinstalled.


Ive just installed lubuntu on my old thinkpad and its running out of space

You can use a tool like Baobab to monitor the Disc Usage. This will show you which Files take up the most space on your system. Deleting files on your Windows drive won't free up space for your ubuntu installation because per default Windows can't read the lubuntu filesystem.

Did you use any custom partition at the installation of leave everything at default?

Baobab | Disk Usage Analyzer


Stuck on GNOME; Can't change desktop environment

Next to your user name there is a little gear you can alter to change the session, not when you log out, but after you reboot, try that one on.


How do you delete old ubuntu partitions?

You cannot merge two partitions. You can only delete those partitions and combine them. So here is my opinion:

Backup your important data
Boot from Live DVD.
Delete both the ext4 partitions and reinstall Ubuntu 15.04

You want to keep your files without deleting them, but that is not possible. You are rewriting the partitions. So expectedly, the files will be lost. So be careful and take a backup before proceeding.


Ubuntu One implements Tomboy's REST synchronisation API, which is documented here:

https://live.gnome.org/Tomboy/Synchronization/REST/1.0

Uses https://one.ubuntu.com/notes/ as the base URL for your API requests (i.e. so the initial request would go to https://one.ubuntu.com/notes/api/1.0/).

As described in the Tomboy spec, you will need to authenticate using OAuth using the entry points returned by the API.  I don't think we've got a system set up to allow you to register consumer keys yet, but you should be able to use Tomboy's default consumer key and secret of anyone and anyone in the interim.

We are in the process of building our developer web site, so this information should be available there in the future.


Why doesn't apt-get install dependency resolution work when specifying old versions?

Your older version must satisfy two criteria.

1) The old version must be in a repository that apt can see.

2) The old version must not break other software on your system.

Your error messages, especially errors about 'held broken package' indicate a version conflict. A version conflict means that the old package violates #2, and is about to break other parts of your system.

Dependencies like foo 1.1 depends upon libfoo(>0.98) are set by the packager of the software when they create the package. Packagers are volunteers - you can learn to do it, too.

Lazy packagers simply use the current dependencies they have on hand. Example: foo 1.1 depends upon libfoo(=1.1). That lack of flexibility in dependency versions causes lots of problems for users. Lazy packages are found in many PPAs and other non-Ubuntu sourced software, and are one reason those are unsupported sources.

More experienced packagers will test their packages to achieve functionality with the widest range of dependency versions. Example: foo 1.1 depends upon libfoo(>=0.75). These packages are usually found in Debian and imported into Ubuntu each release cycle.

Distros like Debian and Ubuntu are 'snapshot' distros. Each release is based on a single stable snapshot. Older snapshots are in older releases. Since versions change constantly, this usually means that many packages are compatible ONLY with the release they are built for.

If you want to run older packages, you must often do so in an older release of Ubuntu (using a VM, for example). You CAN install older software on any you system you wish...but not by using packages.


How to stop window controls appearing in menu bar and apllication

When this happens to a window I have found that if I activate window spread windows key + W then come back out of window spread,that the buttons in a full screen application go back into the unity panel (menu bar).


ssh-agent won't start (even with eval ` `)

I set up ssh keys today for github.

This invokation was successful: eval "$(ssh-agent -s)"

Work through these short articles, they are very clear and concise


How to Resize My Hard Drive in Ubuntu Using G Parted Partiton

Gparted will not let you resize a partition while Ubuntu is running on said partition.

To do this, you will need to use a live CD with Ubuntu (or any distro for that matter) and launch Gparted. From there you should be able to resize partitions as desired. If your going to edit the swap partition in any way you'll need to right click the partition and select Swap off.

P.S. Once you install Windoze 10, you'll want to boot from the live CD once again. Make sure the it's connected to the internet then run the following:

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

Select Recommended repair and follow the instructions.

Windows likes to overwrite GRUB, but this will reinstall GRUB to fix that.

I hope this helps


What's the easiest installation for a home server, Ubuntu Desktop or Ubuntu Server?

If you aren't planning to turn it into a Lamp Server (Linux Apache Mysql PHP) and just want to use it to share files on a local network I don't see any advantage of you installing the Server edition. The regular desktop version will easily suffice for that. But it's also important to note that the Server edition can quite easily have a GUI installed on it was well to make administration slightly easier.


Following Links can help to see updates for Available Ubuntu Versions

Ubuntu Packages http://packages.ubuntu.com/

Click For Ubuntu 12.04 LTS Updates


Installing GRUB onto a USB stick (Server 20.04)

If you can boot the computer in BIOS mode (alias CSM alias legacy mode), and if you want an amd64 image for 64-bit PC architecture, I think you might have better luck with the Ubuntu mini.iso and the old style Debian installer, that the Ubuntu developers consider deprecated, but many users (including me) consider much more flexible than the current 'Ubuntu Live Server' with the Curtin installer.
'Focal' is the name of the developing release that was released as 20.04 LTS. So

this link (with the mini.iso) and
this link (with checksums)

should provide what you need.

Otherwise you might step back to Ubuntu Server 18.04 LTS, which will be supported at least until April 2023 (Select the Ubuntu Server with the old style Debian installer, in contrast to 'Ubuntu Live Server' with the Curtin installer).


Installed ubuntu alongside Windows 8, interface is very small

Select the lower resolution. System settings -> Displays


I had this recently on Ubuntu GNOME and on Unity. The answer is this:
sudo kbd_mode -s

Run that in a terminal and then the Alt+F4 keyboard combination returns to normal.
From kbd_mode man page (from kbd project and package):

kbd_mode - report or set the keyboard mode
Without  argument,  kbd_mode  prints  the current keyboard mode (RAW, MEDIUMRAW or XLATE).
With argument, it sets the keyboard mode as indicated:
-s: scancode mode (RAW),


Checking for a file and whether it is readable and writable

You needn't check if it exists, the checks for read and write permissions are enough:
From help test, a selection of relevant tests:
-a FILE        True if file exists.
-e FILE        True if file exists.
-f FILE        True if file exists and is a regular file.
-r FILE        True if file is readable by you.
-s FILE        True if file exists and is not empty.
-w FILE        True if the file is writable by you.

So you can try:
FILE="/path/to/some/file"

if [[ -r $FILE && -w $FILE ]]; then
  # do stuff
else
  # file is either not readable or writable or both
fi


How to install requested libs: GLIB, libavcodec and libavformat?

An old thread but maybe interesting for others:
The latest version here needs libavcodec56 (strace was my friend ;) ).

One can simple build that version by using git (or an old release tarball).
Here is what i've done:

git clone https://github.com/FFmpeg/FFmpeg.git

# latest minor for of 56:
git checkout b94ec30428b9696f99b08055735689623fe63954

# (maybe also set "--prefix=/usr" here, or start TWS later with e.g. LD_LIBRARY_PATH="/usr/local/lib")
./configure --enable-shared --disable-static
make -j
make install

Now start TWS (maybe set LD-path) and sound should play.


Stuck at grub rescue> after deleting ubuntu 13.10 from windows 8

Deleting Ubuntu from dual boot your grub deleted. Now you have only Windows 8 in your system

Step : If you have recovery partation then run recovery to recover windows 8 Other wise you should boot from windows 8 cd and repair MBR from your windows 8 CD. It will repair your MBR and boot from windows 8 OS.


Messed up Virtualbox package..cannot remove nor update

This should help you out.

If not, you may have to delete the files manually.

Follow the guide located here to boot your computer in safe mode. The second you log in, open the System Monitor by pressing the dash button and typing "System Monitor" and finding it in the list of programs. It's the black box with the green squiggly line in it.

Find anything related to VBox and kill it. If you can't find anything at all, right click System Monitor while it's still open in your taskbar, select "lock to launcher", and reboot into safe mode. Timing is critical, so try your best to open it as soon as you log in. If you still can't find any VBox items in the monitor, you can delete the VBox files.

Head over to /usr/share/applications and find any files relating to VBox, deleting them accordingly.

Now go to /home/your_username/ and see if there's a folder titled "VirtualBox" or anything along those lines. It may or may not have a dot in its title. Delete the folders if you see them.

At this point, most of the files for VBox should be removed, and the data that determines if it's actually on your computer or not should be gone.


dpkg says adobe-flashplugin not installed

It is because that Flashplugin Installer already installed.

It is being removed if Adobe Flashplugin is installed.


As a base minimum, it's highly recommended that the swap space should be equal to the amount of physical memory (RAM). Also, it's recommended that the swap space is twice the amount of physical memory (RAM) depending upon the amount of hard disk space available for the system (although this "recommendation" dates back from a time when physical RAM was very expensive and most Unix systems ran with many processes in swap space - a situation that hardly applies in most situations these days, but ancient Unix/Linux myths like this "recommendation" tend to survive well past their "use by" dates).

In reality, if you use hibernation you need what was outlined in the relevant paragraph above, otherwise you need as much swap space as your system will use - which actually may be very little in a modern hardware setup. The only downside to having more swap space than you will actually use is the disk space you will be reserving for it.

Example Scenarios

Low RAM and low disk space: With 512 MiB RAM and 30 GB hard disk, use 512 MiB for swap since RAM is very low.
Low RAM and high disk space: With 512 MiB RAM and 100 GB hard disk, use 1 GiB for swap since RAM is very low and hard disk space is plentiful.
High RAM and low disk space: With 2 GiB RAM and 30 GB hard disk, use 1 GiB for swap since hard disk space is very low.
High RAM and high disk space: With 2 GiB RAM and 100 GB hard disk, use 2 GiB for swap since hard disk space is plentiful.

For More Information : Swap FAQ


How to install a newer version of Jenkins on 12.04 LTS?

Turns out that instead of changing my aptitude sources, I instead was able to install everything from the defaults and merely replace my jenkins.war file with a newer version. So far everything seems to be okay.


How to set font for GTK applications on Kubuntu 14.04?

In your home directory, create these files:

.gtkrc-2.0 and .gtkrc

In .gtkrc-2.0, insert the following line:

gtk-font-name="Fudd 18"

In .gtkrc, enter the following:

style "default-text" {
 fontset = "-*-arial-medium-r-normal--18-120-*-*-*-*-iso10646-1,\
-*-Nimbus Sans L-medium-r-normal--18-120-*-*-*-*-*-*"
}
class "GtkWidget" style "default-text"

Hope this helps.


I have same experience like you. I solved it by self, with sync the resolution on my laptop with resolution of the projector .When you already connected with your projector open monitor settings in menu or open terminal and type this command :

  lxrandr

set your vga resolution to 800x600 and the dvi resolution 800x600 , then press apply .

Good luck .


How to list files and their inode numbers in current directory?

stat ./*

or

man stat; stat --format=*f* ./*


Can't type VietNamese in Visual Studio Code

Do you install VSCode from Ubuntu software? If yes, can you try to remove ít and download .deb directly from https://code.visualstudio.com/ and re-install.

I think VS Code from Snap is not a latest version so some bugs didn't fix. Please look at image below.


How do I configure CUPS and change SAMBA setting for no printers?

If you are a home user and using samba purely for file sharing from a server or NAS you’re probably not interested in sharing printers through it. If so, you can prevent this error from occurring by adding the following lines to your /etc/samba/smb.conf:

printing = bsd
printcap name = /dev/null

Restart samba:

/etc/init.d/smbd restart

…check your logs:

less /var/log/samba/log.smbd

and the error should now no longer be appearing.


Unable to download subtitles from SMPlayer

Uninstall SMPlayer. Use janitor service from Ubuntu Tweak to clean your system(including the package configurations) and after that reinstall SMPlayer from Ubuntu Software Center. Did it right now and I was able to download subtitles again. It worked for me. Hope it works for others too!


Is there still heating problem with acer laptop?

As said, your problem is related to your graphics card. The Optimus dynamic graphics card switching works great on Ubuntu. You only have to install Bumblebee. Bumblebee allowed manual switching and since version 3 it allows automatic switching

Optimus technology switches off your Nvidia card and use Intel hd graphics in your Core i5 processor when there is no need for high graphics, but switches back to Nvidia when the need comes.

To install bumblebee, do the following in the terminal:

add bumblebee repository and check updates:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update

check kernel version

uname -a

example output:

Linux  3.5.0-23-generic

Install Bumblebee using the proprietary Nvidia driver, change number and suffix of Linux header according to Linux kernel. If your kernel has different number or has pae suffix, just add these to Linux headers :

sudo apt-get install bumblebee bumblebee-nvidia linux-headers-3.5.0-23-generic

Reboot
Listen to the fan with less noise
test installation with this:

optirun glxspheres


How to remove anomalous warning after closing gvim

You have backgrounded the program by using the ampersand (&) and also it is probably best to name your function mygvim so you can still run gvim with its default settings when you want to.

cd to your home folder and edit your .bashrc with your favourite text editor:

nano -cw .bashrc

Your function should look like this:

mygvim() { /usr/bin/gvim -f "$@"; }

(If you wish your files to each open in tabs you could add the -p option.) Then save your file after you have finished editing it.

Now you must source your .bashrc so it is read (or restart the terminal):

. .bashrc

You can call your function by whatever its name is and place two text files in the gvim buffers with

mygvim my.txt second.txt


In the ubiquity installer, what does the 'skip' button do?

Some apt configuration will be skipped.

If the 'skip' button was clicked, some verbose messages may be seen within the embedded terminal that is collapsible below the slideshow and nothing else; the installation will proceed and complete anyway.

The combined screenshots during installation as follows.

The button is disabled (greyed out) almost all the time, and will only be enabled when the installer is configuring apt during the installation. If the button is clicked early enough, user will not see such line of text "Retrieving files N of N".

This could be a bug: The button may not be shown unless the embedded terminal is collapsed. As of 16.04 release, the button is shown from the beginning, but the button will actually hide itself when the embedded terminal is collapsed and uncollapsed. User experience may vary from release to release.

TL;DR The button will skip something trivial, which does not affect the installation.


Output audio from browser to discord with mic mix in

This problem is most easily and flexibly solved using a combination of both Pulse and Jack. This link is to a blog post for routing mic and other sound to Jitsi Meet in a browser. Scroll down to the "linux" section. The steps were written with an Ubuntu system in mind: https://www.fossbox.org.uk/?p=240


Installing Ubuntu on new computer, transfering existing HD with user files

First make sure you have a reliable backup of all your important files!

Make sure the user IDs (UID/GID) on the new system will match the ones on the old one, so you do not have to change the ownership of all the files in the old /home directory (getent passwd <username> will give you the information).
In newer Ubuntu sytems, UIDs of new users will start with 1000.

As the old /home directory is not a partition but a directory you cannot mount the old partition (say /dev/sdb1) at the new /home and be done. But with some manual correction this is not that difficult.

Assuming the old disk is connected when you install the new Ubuntu on the ssd, one possible way could be:

Say the new SDD is on /dev/sda and the old disk on /dev/sdb. Start the installation of Ubuntu (from CD or USB) as usual, up to the partitioning of the disks. Maybe the installer tells you about already mounted partitions; let it unmount them for you.

Select "manual" in the upcoming dialog to override default in partitioning. Then select the new disk (pay attention to select the corrct one; should be sda1 here, but you may make sure from the size of the disk). If there is no partition table yet, let the installer create one. Select the "FREE SPACE" then and select "Automatically partition the free space". Now you will be given two new partitions on /dev/sda (/ and swap). Leave them as they are.

Then select the partition on the old disk your data are on (usually primary partition on sdb, ext4 formatted). In partition settings, select "Use as" and select the filesystem already on the disk (usually ext4).

In the partition settings now MAKE SURE in the option "Format the partition:" "No, keep existing data" is selected. Otherwise you might lose all your data!

Select "Mount point", and in the upcoming dialog, select "/home". Then select "Done setting up the partition". You will be returned to the partitioning dialog; here you should again control the partitioning thoroughly. Up to now, nothing has been done to the disks. If everything is as expected, select "Finish partitioning and write changes to disk", then after again controlling the suggested actions, say "Yes" to "Write changes to disk?". This will affect your disks, so better look twice before! There must be no formatting on partitions of your old disk!

At the end of the installation process, you will be ask where to install the boot loader. Select your SSD (/dev/sda). There will also be a GRUB menu which will let you select and start your old system (as long as it is not deleted from disk).

After finishing the installation process and logging in to the new system, your old "/" will be mounted to /home, and for the user you created there will be a new subdirectory. Additional, all directories of your old system will be there as subdirectories, and your old /home as /home/home. Now just sudo mv /home/home/<username> to /home/<username>(or if there are more than one users, sudo mv /home/home/* /home) and your done.

If the default user you created during installation has the same name (and therefore the same name of the home directory) as one of your old users, this will not be possible for this user, as there is a new user directory with the same name created. So it is best to create the default user with a different name and correct this after having moved the user's home. I also assume that you have no user named after the system directories like /bin, /tmp, /usr..., as these directories of the old system still exist in /home. You may later on (re)move them, if everything works OK.

There is one additional problem in this approach: You will reuse all the old user configurations (as in .cache, .config and the like). Maybe there will be some weird behaviour especially when using the GUI (like unity, gnome, ..) and new versions of software.


How to recursive regexp rename double dashes

To match/change that pattern within a single directory it should be as simple as

rename -- 's/-+/-/' *.jpg

(replace one or more consecutive dashes with a single dash) but do a dry-run first by adding the -n and -v flags

rename -nv -- 's/-+/-/' *.jpg

If there are multiple instances of the multiple dashes in a single name (e.g. abc---def--ghi.jpg) then you will need to add a g (global) switch

rename -- 's/-+/-/g' *.jpg

If you need to change names in gallery subdirectories recursively then you could use the rename command as an exec action to a find command e.g.

find /path/to/dir -name '*.jpg' -exec rename -nv -- 's/-+/-/g' {} +

or, if your remote shell supports the globstar shell option you could try making the rename command act recursively on its own by using a glob like **/*.jpg


Problems with atom-beautify as i can not beauty php code

With wget

wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.0.0/php-cs-fixer.phar -O php-cs-fixer

Or with curl

curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.0.0/php-cs-fixer.phar -o php-cs-fixer
sudo chmod a+x php-cs-fixer
sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer

Then add /usr/local/bin/php-cs-fixer in Packages / Atom Beautify -> Settings -> PHP-CS-Fixer Path


Magnet link sometimes does not open Transmission

There is a bug report about this on launchpad: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1325237

Solution mentioned there: click on the "choose" button and go to /usr/bin and select transmission as startup application.


How to list all the proprietary drivers / stuffs installed on Ubuntu Mate 16.04?

That checkbox is not about proprietary DRIVERS, but proprietary audio/video codecs and Adobe Flash. There was no need to re-install the system to add them.

You could install ubuntu-restricted-addons package to get those.

So the output that no proprietary drivers are installed is correct.


GTK 3.x is included by default in Ubuntu. You have both 3.x and 2.x installed.

If you are trying to install a version of Banshee which uses GTK 3.x, from source, you will need to install all the required development packages, to be able to compile it.


I use a variant of the previously noted solutions, wrapped in a bash script, and launched from a desktop icon.  Since my application is for an external USB drive, I include code to identify the relevant device name based on the specific name of my USB drive (SILICON16GB).  The main components of the process are:

# Flush USB drive buffer
sync
# Identify the device name for the SILICON16GB USB drive
usblongname=$(lsblk -l | grep SILICON16GB)
usbname="${usblongname:0:4}"
# Unmount the USB drive
udisksctl unmount -b /dev/$usbname
# Power off the USB drive
udisksctl power-off -b /dev/$usbname

Note that the use of the sync command causes the script to wait until any writes to the USB drive have been completed.  The script is failsafe in that it does nothing if the drive is already unmounted.  More details, and a full listing of the bash script can be found at: https://linuxnorth.wordpress.com/2018/01/25/safely-removing-a-usb-drive-with-a-bash-script/


Fail to install Ubuntu 16.04.1 due to libparted bug

I couldnot manage to move /dev/sda4 which was physically located as the last partition. So I deleted the partition and merged to /dev/sda7. Then I shrink /dev/sda7 to create a new partition before /dev/sda7.

Basically I moved the last partition (my desired location for ubuntu) to my second-to-last partition using MiniTool Partition Wizard Free 9.1 in windows 10. I couldnot do / find any tools in linux to do so without loosing the data. Gparted was showing error from begining. Even diskmgmt.msc from windows 10 was showing some kind of error. MiniTool Partition Wizard Free 9.1 saved my day without loosing any data.

What caused above problem is still a mystery to me.


20.04 Focal - Nvidia driver no longer loading with kernel 5.4.0-42

For some reason, the headers for 5.4.0-42 weren't installed by apt automatically. (I did the original offending kernel update as part of a prompt from the "Software Updater" GUI.)
Installing the headers with:
sudo apt install linux-headers-5.4.0-42-generic

caused apt to automatically recompile the nvidia kernel module for the new kernel. After a reboot to the new kernel, everything just worked.
I'm not sure why headers weren't installed automatically (I believe they usually are?). Perhaps there is a problem with the apt package for the new kernel? (It was released 2 days ago as of this post.)
This happened on the 20.04 Focal release.
Update:
Per the comments below, the linux-headers-generic metapackage (and the linux-generic metapackage) was not installed on my system. It looks like they were removed on the day that I upgraded to Focal. It happened around the time of removing an old Nvidia driver.


Zenbook UX305 disconnecting wifi in Ubuntu 18.04

For myself, I noticed my user had dropped out of the /etc/NetworkManager/system-connections/<SSID> file.

I had to add

permissions=user:<username>:;

to the connection properties.


Two issues...

Firefox 66.0.3 has a bug whereas it disabled all extensions (Saturday at midnight, I believe...). This was fixed with Firefox 66.0.4. So do your Software Updates.

Netspeed has a problem with 19.04 anyway, but there's a fix for that here. You might check out Vitals here. It can display various netspeeds (and other things) in the top panel.


Yes. Try for yourself...
$ apt --purge --simulate autoremove
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-5.8.0-43* linux-headers-5.8.0-43-generic*
  linux-image-5.8.0-43-generic* linux-modules-5.8.0-43-generic*
  linux-modules-extra-5.8.0-43-generic* linux-tools-5.8.0-43*
  linux-tools-5.8.0-43-generic*
0 upgraded, 0 newly installed, 7 to remove and 5 not upgraded.
Purg linux-headers-5.8.0-43-generic [5.8.0-43.49]
Purg linux-headers-5.8.0-43 [5.8.0-43.49]
Purg linux-modules-extra-5.8.0-43-generic [5.8.0-43.49]
Purg linux-image-5.8.0-43-generic [5.8.0-43.49]
Purg linux-modules-5.8.0-43-generic [5.8.0-43.49]
Purg linux-tools-5.8.0-43-generic [5.8.0-43.49]
Purg linux-tools-5.8.0-43 [5.8.0-43.49]

The --simulate flag makes testing without risk easy.


How to remove an uninstalled package's dependencies?

You can use the command apt-get autoremove. It will remove packages that are installed as automatic dependencies, but are not depended anymore.

apt-get has a flag --auto-remove that can be used to automatically remove the automatically installed packages when removing a manually installed package:

apt-get remove --auto-remove packagename

Certain other tools are also capable of doing this, for example aptitude will automatically suggest that you remove the packages that have been orphaned.

The automatically installed packages tracking is built in to apt so the tracking should work no matter which tool you use to install the packages.


It allows you to install various packages whilst installing all the dependencies that it requires. It does all the heavy lifting like other package managers such as apt-get.

http://yum.baseurl.org/

  Yum is an automatic updater and package installer/remover for rpm
  systems. It automatically computes dependencies and figures out what
  things should occur to install packages. It makes it easier to
  maintain groups of machines without having to manually update each one
  using rpm. Yum has a plugin interface for adding simple features. Yum
  can also be used from other python programs via its module inteface.


Blank screen after software update on ubuntu 13.04

Actually it is about video drivers. Catalyst version 13.4 supports xorg only up to 1.13.

  As of April 26, 2013, Catalyst packages are no longer offered in the
  official repositories. In the past, Catalyst has been dropped from
  official Arch support because of dissatisfaction with the quality and
  speed of development. This time, it's the incompatibility with Xorg
  1.14.

look at: https://wiki.archlinux.org/index.php/AMD_Catalyst

hope that will help you m8.


Repartition HDD to give Ubuntu more space

DO NOT try resizing Windows 7 drive from GParted. It creates huge issues with boot sector and flags, and you might as well just reinstall Windows. Just shrink the Windows volume from Windows Disk Management in Adminstrative Tools. That will give you free space. After that downoad GParted Live, here http://sourceforge.net/projects/gparted/files/gparted-live-stable/0.14.1-6/gparted-live-0.14.1-6-i486.iso/download burn it to a CD and boot from it, then use the freed disk space after shrinking Windows drive to resize Ubuntu drive. Make sure you're resizing the / and not /home or /usr if you have flags for them.


WINE Keyboard Bug. (Keys are Stuck for a few seconds and then release) (Gaming)

Try unchecking the key repeat. it works for me


Setup a service that auto-magically deletes specific files from a folder

Would adding a find command to cron work for you?

find /path/ -type f -mtime +5 -name '*.log'

You can layer on extra things to find just the files you want. -mtype is the date-limiting portion which finds files last modified over 5 days ago. You can change this to just look at creation or even access times (if you're not using noatime on your fs)

When you're getting the right files, just stick -exec rm {} \; on the end. You could use -delete but that will crumble if you have too many files being deleted at once. Only do this once you're sure!

When you want to schedule it, su into the right user account (the person who owns the files) and then run crontab -e. You can then write out the command and when you exit, it'll run at the schedule you set. You can read more about cron here:

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


Ubuntu 19.04 doesn't boot without a windows restart [on dual boot]

I wonder if that could be because of Nvidia Optimus.
If yes, you could try to install "Prime"

First :

sudo apt-get purge bumblebee* primus libvdpau-va-gl1

Then :

sudo apt-get install nvidia-**XXX** nvidia-prime mesa-utils

With XXX the most recent drivers in repository.


WiFi randomly turning off "via hardware switch"

Perhaps you can try sudo iwconfig wlan0 power off and see whether it solve the problem. Sometime wireless issue could be due to its power management feature. I have encountered some issue with the power management on.

To confirm whether power feature is on, you can do sudo iwconfig and you would see the power management status in the output.


How do I reset my desktop computer with pre loaded Ubuntu 13.1 to first start?

I am not sure if this will work, but you can give it a try:

log in under the guest account, now go to your system settings (the icon with a gear) and under System to 'User Accounts'. hit the + sign in the lower left to add a account. It should be an Administrator. Here is where it might go wrong, because I think it will ask for a password, and you probably don't have one. If not, you can add a password for the account by hitting the box next to password and than you are setup.

If this doesn't work and since you have nothing on your computer jet it might be easiest to reinstall Ubuntu, system 76 has instructions for that here.


Well, you should check your MD5SUM of the iso image to see if it is a corrupted download. See HowToMD5Sum. Use UNetbootin to burn the ISO image. If you're using a CD/DVD, use a slower burn speed. However if you are to upgrade, use an alternate image and mount it, or just use the update manager, or use sudo do-release-upgrade in terminal.


Ubuntu 20.04 - Display glitches after wake up

You can try to disable hardware acceleration in the settings.


How to assign "back" and "forward" actions to Logitech Anywhere Mouse MX' horizontal scroll wheel?

I have this same mouse, and I wanted to bind the two buttons on the side of the mouse to forward and back.  Here is how I solved this:

1) Use the utility "xev" to determine what numbers the buttons you are wanting to remap correspond to.  You may have to install this package using

sudo apt-get install xev

Once xev is installed type "xev" into a terminal, and an X window that is white with a black box will pop up.  Moving your mouse into that window will begin registering events to the terminal.  Reading the output of that carefully will tell you the numbers of your mouse buttons. On my mouse, the left and right tilt map to buttons 6 and 7 respectively.

2) Now we are going to use the utility "xbindkeys" to remap the mouse buttons to key presses.  If you don't already have this installed you may have to install it with

sudo apt-get install xbindkeys

3) Create a file in your home directory called ".xbindkeysrc".  This is what xbindkeys will read to see what you are remapping.  The contents of my .xbindkeysrc file are:

 "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
   m:0x0 + b:8

 "/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
  m:0x0 + b:9

So this tells my computer to send the keyboard button presses "Alt+Left" or "Alt+Right" to the system using the virtual keyboard (xvkbd) whenever button 8 on mouse 0 is pressed or button 9 on mouse 0 is pressed respectively.  These keys correspond to the the forward and back keys in most applications.  This will work, for example, in Nautilus, chrome/

Note: you may need to install xvkbd if not already present on your system. sudo apt-get install xvkbd


How to get AMD Radeon HD 5450 drivers on Ubuntu 16.04

Depending on your exact graphics hardware, Ubuntu 16.04 will use either the open-source AMDGPU driver or the open-source Radeon driver, both of which are included in the default Ubuntu installation. The amdgpu driver, pre-installed in 16.04, is used for AMD's newest graphics cards. The radeon driver, also pre-installed in 16.04, is used for older AMD graphics cards that the amdgpu driver doesn't support (your graphics card was launched in 2010).


Is there a way to capture and replay network traffic on demand?

If you're talking about a web-based login screen, there's a good chance it sets a cookie and a corresponding token, which change upon each viewing, in order to protect against Login CSRF.  This would also prevent what you are trying to do from working.

Basically, this means that the form sets a unique cookie along with a token in a hidden form element, ensuring that the person submitting the form is the same person that requested the page.

On the off-chance that they don't do this, you could write a script to login via curl, and then place that script into /etc/network/if-up.d/ (as described here).


Are you running the program as a normal user? are you able to run the program using sudo?

try doing

chmod +x programname


F.lux GUI doesn't open, unable the modify timezone/location

I had tried F-lux before moving the Redshift and I just found my settings. You can edit them in graphical gconf-editor or manipulate them with gconftool:

$ gconftool --all-entries /apps/fluxgui
 latitude = 50.9848
 autostart = 1
 longitude = 11.0299
 colortemp = 1
$ gconftool --get /apps/fluxgui/latitude
50.9848

You could unset a particular key from terminal with --unset or unset all keys with --recursive-unset, which should stop it from running or enable you to change the configuration through the GUI. More parameters on the manpage.

I also looked at the package and found that xflux is, similar to what has been brought up again in recent news about F.lux on other platforms, only provided as a compiled binary in the source package (it's closed source). I recommend you move to Redshift which has seen lots of improvements in recent versions and supports multiple monitors.


According to the additional informations that you gave to us you are clearly talking about the support and what are the options for the C++ under linux.

Regarding your statement "you have to write code differently" it's not like that, it depends on what libraries you are using and in general on what is the solution that you are adopting, but the language itself is supported in almost every platform, desktop and mobile included; the libraries and your code, if you write them in the right way maybe they can be fully portable too ... portability is a big topic in C++. GCC supports the latest version of C++ so you have all the options available.

If you want to start with programming and with the C++ there are 2 links that can be helpful for you:

https://stackoverflow.com/questions/194812/list-of-freely-available-programming-books

https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list


How to setup a wired network in the IPv4 network settings?

Assuming the computer is connected by ethernet cable to the cable modem provided by the ISP, you should see the network manager icon on the right side of the top panel.

Select eth0/1/... (your interface where the cable is plugged in), click edit...

Click add

Connection name: something like Wired Connection.

Check connect automatically.

Click IPv4 Settings tab. Change Method to "Manual." In the table below, under address enter the IP address. Under netmask enter the subnet mask. Under Gateway enter the default gateway. Under DNS servers enter the preferred DNS server a comma (,) and the alternate DNS server. Click Save when done.

See http://www.liberiangeek.net/2012/04/setup-a-permanent-static-ip-address-in-ubuntu-12-04-precise-pangolin/ for details.

That's it.


How to install a Broadcom BCM4306 Wireless on MacBook Air

For your MBA, you need to install 'broadcom-sta-source' and 'broadcom-sta-dkms'. Remove all b43-* drivers you might have installed as they conflict with your card's drivers (if I remember correctly).

sudo apt install broadcom-sta-source broadcom-sta-dkms


How do I turn off nVidia high performance mode?

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install nvidia-current
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia

Then reboot and it should automatically use your low-performance graphic chip.
To start an application with the nVidia high-performance graphics card use optirun.

Example: Press Alt+F2 then type optirun firefox to start firefox with enabled high performance GPU graphics mode.

Source: [German] http://wiki.ubuntuusers.de/Grafikkarten/Nvidia/Nvidia_Optimus


VirtualBox GPU Passthrough: Code 12 in guest

The problem seems to have come down to my specific hardware (an ancient PCI 8400GS) not being capable of being an active VGA passthrough device while there is an active Virtual Display.

NB that I've only tried it with QXL -- others might not cause conflicts.


Booting from Live USB while Ubuntu 15.04 is already installed on the HD, makes next boot not find any OS

The solution was to use the boot-repair utility. You can boot from the Live USB again and run the following in the terminal (for Ubuntu 14.04 and up):

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

Then press Recommended Repair. After it's done, you'll be able to boot your OS again. I have confirmed that this is a permanent fix, and it is safe to book from the Live USB again.