How can I display text from a file automatically after powering up my computer, in text editor or terminal?

Your first step is to find out the name of your notepad / GUI editor / writer program as described in this Q&A: How does one find out the command line corresponding to GUI app (eg, LibreOffice Writer)? In my case I use LibreOffice Write and the command is libreoffice --writer.

The next step is to select Dash which is the first option on the Launcher. In the search field type in Startup and select the icon Startup Applications. The following window pops up:

Select the Add button. And this window appears:

Fill in your writer / program name and pass it the name of your to-do file. This is probably the hardest part to get right and often requires a little experimentation.

Edit 1

Proving that experimentation is needed when using the above example tonight an error was displayed:

Checking the actual file name ends in .odt edit the Startup Application profile and change the file name by adding the extension .odt and then voila on every boot you get:


Ok, now I can confirm that recent power-managment update fixed the problem.... finaly... after about 3 months I can close the lid without being annoyed by that sound :) Thx everyone for helping!


Calling man of command works, calling command does not

The command is actually rename.ul and the man page you are seeing is as supplied by the util-linux package.
The key indicators are: man rename is the same as man rename.ul, unless you have the perl version of rename installed (which is the one most of us are familiar with), then man rename is different;  This line from the bottom of the man page:
util-linux June 2011 RENAME(1)

Then if you lookup the package contents of util-linux you see rename.ul, but not rename. And yes, this is confusing.


ubuntu libimobiledevice ios 14 focal 20.04

I ended up on this issue discussion and adapt one of the script provided in it
sudo apt install build-essential checkinstall git autoconf automake libtool-bin libssl-dev pkg-config cython libusb-1.0-0-dev
git clone https://github.com/libimobiledevice/libplist
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
git clone https://github.com/libimobiledevice/usbmuxd
cd libplist
./autogen.sh
make && sudo make install
sudo ldconfig
cd ..
cd libusbmuxd
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make && sudo make install
sudo ldconfig
cd ..
cd libimobiledevice
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug
make && sudo make install
cd ..
cd usbmuxd
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run
make && sudo make install
sudo killall usbmuxd

rm -fr libplist/ libusbmuxd/ libimobiledevice/ usbmuxd/


Try running

unity --replace

in terminal. If that doesn't work, you can reset it using

unity --reset


You can find this out by running
xinput list-props 11 && xinput list-props 15

But both devices will use the same driver unless you deliberately change it.
You can try to disable one or another by
xinput disable 11

or
xinput disable 15

to see which is really used.
I think it is the same device but with PS/2 and i2c interfaces.


Is there a chat application that supports a proxy?

A friend at work found the solution. In Pidgin, the Proxy tab in settings doesn't work. But if you go to the Accounts window, modify an account and go to the Proxy tab, you'll be able  to edit manually the proxy of that account. In my case, setting "Use environmental settings" worked.


ARM 32-bit ELF does not execute using qemu-arm

Prefix the LD_LIBRARY_PATH with /lib/arm-linux-gnueabihf: (or just set it to /lib/arm-linux-gnueabihf if it's empty on the line invoking the executable:

LD_LIBRARY_PATH=/lib/arm-linux-gnueabihf qemu-arm bin

That should allow the executable  to find the file.


You can try preseeding a debconf selection and then use a non-interactive frontend for dpkg-reconfigure. First find the correct key for preseeding:

$ debconf-get-selections | grep lightdm
# Choices: gdm, lightdm
gdm     shared/default-x-display-manager        select  lightdm
lightdm shared/default-x-display-manager        select  lightdm

So set, perhaps:

sudo debconf-set-selections <<EOF
slim    shared/default-x-display-manager        select  slim
lightdm shared/default-x-display-manager        select  slim
EOF

Then either of, depending on whether you already have slim installed:

DEBIAN_FRONTEND="noninteractive" dpkg-reconfigure lightdm
DEBIAN_FRONTEND="noninteractive" apt-get install slim


Yes there is a website http://xliff.brightec.co.uk/ which can help you in that. There are other option on web as well but I used this one usually because its easy and straight forward.


Can't Install UVC drivers: "implicit declaration of function 'x' [-Werror=implicit-function-declaration]"

The errors you see are caused by the C++ source code which you got with the git clone command from the site. They have an inherent bug(implicit function declaration), so you should file a bug against the package. You could try editing Makefile in gedit, or if build is a shell script, editing that to remove -Werror=implicit-function-declaration from any commands.


Use these commands to purge xubuntu and to install xfce:

sudo apt-get purge xubuntu-desktop
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install xfce4

Run the command:

apt-cache search xfce | grep xfce

to list all available related packages.

To install all of those packages, run this command

sudo apt-get install xfce4*


Does Ubuntu support "Tent mode" automatic orientation?

I have lenovo to, but i don use the flip mode. At screen options you can also turn your screen, but it also can automaticly, everything can with Linux, but sometimes is difficult to find the best solution. Maybe this can help>> Touchscreen Input Doesn't Rotate: Lenovo Yoga 13 / Yoga 2 Pro


Is it possible to open applications in a terminal and have them load on a particular workspace?

You may want to look at a tool called Devil's Pie (look for "devilspie" in software center, or apt-get install devilspie). The description is:

This tool will find windows as they are created and perform actions
 on them, such as resizing, moving to another workspace, or pinning
 them to all workspaces.

You may also want to install gdevilspie, a friendly configuration frontend, as devilspie configuration is done through a possibly arcane text file.

Many window managers have the functionality you need, but as far as I can recall, neither Compiz nor Metacity can do this, and it's a design choice for them, as window arrangement and placement based on actual window properties should not be part of the window manager itself.


Tearing intel HD 3000 with Ubuntu 11.10 (AMD 64)

"You should not experience tearing if you disable compositing and use gl or vaapi output. Tearing still happens with xv/x11 due to vsync not working properly on Sandy Bridge yet, even with compositing disabled."

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/755841/comments/89

I confirm that this workaround works on my system with Intel/ATI Hybrid graphics, using Intel graphics as active. I'm in KDE, before playing video I will switch off KDE compositing (Alt+Shift+F2) then play video using mplayer with gl output. No tearing at all! :-) Finally, I can watch movies in great shape on my 32" HDMI TV ^_^

Using VLC still tears, because when with VLC-GLX the video is corrupted, and with XV there's still video tearing even with compositing disabled.

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/755841/comments/101


grub-efi-amd64-signed package failed to install

I followed this guide UEFI and I finally got the same error to go away.

If you read 1. Boot mode matching -- "If you're dual-booting with another OS, the two OSes' boot modes should match. Most computers that ship with Windows 8 and later use UEFI to boot that OS, so this configuration dictates use of UEFI mode when installing and booting Ubuntu."

So it seems like you need to download GRUB or get rid of window 8.1. I am not familiar with how to install GRUB, but this link will be useful GRUB MANUAL.

I hope it helps.


How can I remove icon covering clock in GNOME Shell top bar?

From this cropped screenshot that you have added to the question, it looks like you have too many indicator icons in your top-right  status area. Also the fact that the default spacing between the icons in the status area is quite large made the matter worse in your case.
So you might want to reduce the spacing between the icons in the status area first. You can do that by using the Status Area Horizontal Spacing GNOME extension (Refer to this Q&A to learn about installing and managing GNOME Shell extensions):

Also might want disable/remove unnecessary icons from the the status area.


MongoDB (3.2) doesn't start on Lubuntu 16.04 LTS as a service

The instructions/packages on the MongoDB site are currently available for LTS Ubuntu 12.04 and 14.04 only. The packages are set up to use upstart instead of systemd. You need to create a systemctl file to be ready for systemd. Create it by

sudo nano /etc/systemd/system/mongodb.service

It will look like

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

Now you can start the service and check its state by

sudo systemctl start mongodb
sudo systemctl status mongodb

and finally enable it permanently by

sudo systemctl enable mongodb

(Source: How to Install MongoDB on Ubuntu 16.04)


How to use Ubuntu Touch Developer Preview

As i know from Joey at OMGUbuntu.co.uk that ubuntu mobile still in development... it's still preview and it's not the final version to public (notyet). So there is no much app or app store, So be patient pls :), the time will come soon XD


How do I format my Ubuntu recovery media pendrive?

There are several disk manager tools that you can use on Ubuntu. One of the best is GParted, you can install it via Ubuntu Software.
Once it is installed:

Plug your USB Drive to your PC
Open GParted, enter your password and choose your USB Drive as shown in the screen shot /dev/sdb (the top right of the screenshot)

Select all the partitions (the box with green).
Go to Partition option and select unmount.
Go the Device option and select create partition table.
Make sure that the partition table type is msdos, then click apply.
After that, you will have a grey partition as shown in the screenshot

Select the grey partition and click on Partition option again and choose new.
choose the File system type (in my case I chose NFTS), then press add.

Click on the green sign (the OK/Check sign) as shown in the following screenshot and wait till the operation complete.


What Happens if I Remove a DE *before* I Install Another?

You'll have no problem to run and finish the command. You'll also be able to work with KDE programs already opened further. But you should be prepared for problems.

For this reason, logging out of the KDE session and change to tty1: Ctrl+Alt+F1

Login and run your deinstallation. aptitude runs autoremove per default automatically, but you should run

sudo aptitude autoclean

after the command in your question. Now install your new DE.

Warning: I havn't tested the command in your question.


Clutter Performance Issue with 965gm GPU

Edit /etc/environment file with nano or gedit and add;
CLUTTER_DRIVER=gles2
Save files than reboot your machine.
Gnome UI will be silky smooth even with GMA965, but I could not be able to get smoothness for firefox. But it is enough for now.


How to make HDAJackRetask work in Ubuntu 20.04?

It works for me renaming pulseaudio (autospawned parameter does not work):
sudo mv /usr/bin/pulseaudio /usr/bin/pulseaudiodisabled
killall pulseaudio
then apply the HDAjackretask modification without reboot (you have to run alsamixer and unmute and raise master volume after apply  ).
Close alsamixer before testing another setting.
As  pulseaudio is disabled, play sound with audio program using alsa (speaker-test, mplayer, vlc...)
then if errors persists , find which program blocks audio:
sudo fuser -v /dev/snd/*
If ok, install boot override , reboot, and test.
if it is still ok, re-enable pulseaudio :
sudo mv /usr/bin/pulseaudiodisabled /usr/bin/pulseaudio
 pulseaudio


Digikam Geotag, drag and drop not working

Google plugin seems to have problems, but there is a way to get it done, as I found out:
1. Select image, open the geotagging window (Ctrl + Shift + G) and surf to the desired position in googleearth-view.
2. Change interface to 'Marble virtual globe'.
3. Drag'n'drop would't work either, but right click, then select 'copy coordinates' (this drop down menu is missing in the google interface).
4. Paste coordinates to image.
5. Now 'Reverse geocoding' to create tags (not necesary, but a very nice feature).
6. Apply.


Update is not working due to Malformed entry error

You are looking at a related file, but it's the wrong one. Your error clearly states that the problem is line one in the file /etc/apt/sources.list.d/dotnetdev.list which according to this should be deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main for 14.04 and deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ xenial main for 16.04. if the line you have exactly matches for your distribution you should report a bug. If not, fix it with your favorite editor.


Harmless pranks there for the command line?

A speak out message:

echo 'you are under surveillance' | festival --tts

Probably run this on start-up!

Source: This Thread -  http://ubuntuforums.org/showthread.php?t=1074772


Xfce, panel, item, windows button, add icon for specific application

I figure this should work in every xfce, this case is Debian xfce:


How to install Epson XP-235 scanner's driver

Firstly, you want to unzip the archive (.tar.gz file):

tar xvf imagescan-bundle-ubuntu-16.10-1.1.13.x86.deb.tar.gz

Once that's done, you should either have a folder named something similar to that file, or a file, which I expect to end with .deb. You can view the files in your current directory by typing ls -ltr, this will also show more information about them, and sort them by modified date, with the most recent at the bottom. Locate the .deb file, and run

sudo dpkg -i imagescan-bundle-ubuntu-16.10-1.1.13.x86.deb

Naturally, if the .deb file has a different name, you will need to change this command. Read the output from this, sometimes it will say "You have unmet dependencies", this means basically that dpkg couldn't handle the deb file since it doesn't know how to install other stuff which is required, so to fix it I tend to do

sudo apt-get -f install

This will prompt you for Y/N, when it does, you should read it. It will say either "The following packages will be installed", or "The following packages will be removed", and it will list the imagescan package. If it says they will be installed, you're golden. If it says they will be removed, let me know and I'll try remember what I normally do from there.


Which file system supports RAID and is mature enough for a media server?

Traditionally raid is implemented below the filesystem layer, so you can use whatever filesystem you like.  ZFS does it in the filesystem, but is not in a production usable state on Linux.  Btrfs also is trying to do the same, but again, isn't in a production quality state.  mdadm software raid can handle replacing failed disks in redundant configurations ( levels other than 0 ), and can reshape the array between most levels or add and remove disks without data loss.

In any case, it is important to remember that raid is no substitute for backups; its purpose is to avoid downtime in the event of disk failure, not protect data from any of the myriad of ways it can be lost.


There may be some old versions of Ubuntu that will work with your old computers, but I would recommend that you get a newer Mac that will definetly be able to run the newest software. Find a model that you like, then Google around for tips and tricks for a seamless Ubuntu installation. All Macs (as far as I am aware) are able to run Ubuntu, but the bells and whistles may not work perfectly without a little work, most of which has already been done before, and documented.

In conclusion, find what Mac you want, Google around, and go for it.

Note: You may find this guide useful, although rEFIt is not maintained anymore (it should still work fine, though)

http://lifehacker.com/5934942/how-to-dual-boot-linux-on-your-mac-and-take-back-your-powerhouse-apple-hardware


Distorted video playback: can't see the movie

i know how to fix the problem
go to tools > preferences > video settings

in display
change output to > X11 video output

it worked fin after that


I use a small command line utility called rtmpsuck which listens out for to a live stream (using the rtmp protocol) being played from your browser and saves it to your hard-drive.

Install from Software Center rtmpdump
Using Users & Groups create a user called rtmp - ensure to "Enable Account". I didn't want to see rtmp on my Logon Screen so in Advanced Settings - Advance tab I changed the new users UID to a unique number below 1000 i.e. in my case 998
Redirect some live-streaming traffic for this new rtmp user

sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner  \! --uid-owner rtmp  -j REDIRECT

Create a folder in your Downloads folder called mysavestreams
Using Nautilus (File Manager) right-click this new folder and Share it - make sure the check-boxes are selected: "Share this folder", "Allow others to create and delete files in this folder", "Guest access (for people without a user account)"
cd ~/Downloads/mysavestreams
sudo su rtmp
Now browse to your live-streaming site and find the live-stream playing
rtmpsuck

This will record what you are seeing on the screen into a new file saved in mysavestreams folder.

It works for the vast majority of live-streaming sites - e.g. Justin.tv

However, it is a little ironic that the one site you've listed in your question doesn't work!  In these circumstances I would use recordmydesktop found in Software Center to capture the Stream being displayed on screen.


backup with Dèja Dup and Duplicity returns an error

(Partial answer and extended comment)

I have run into the same error. It's a Unicode vs. ascii encoding issue and the bug report can be found here, with more info in the comments.

A fix has already been committed in duplicity 0.8. However, unfortunately the Ubuntu repositories only contain duplicity 0.7 as of now; here's the version running on my machine:

$ duplicity --version
duplicity 0.7.17

So looks like for now we are stuck with the bug until duplicity 0.8. (But does anyone know how to update to the development version of duplicity?)

Also, it looks like the error is actually raised when attempting to report a different error. So there is an error somewhere in one of the files to be backed up; it's just that the error is not being reported, since it has some special character which isn't processed correctly.


What packages are neccessary to have sound output from java applets?

I've solved this myself. Using strace (I love this tool!), I found out that java attempts to access various alsa sound control devices. Most of them don't exist (ENOENT), but the first and primary one gives (EPERM) indicating insufficient permissions.

From there, the fix was obvious: the device in question belongs to the audio group, but the user running the java applet in question does not. Adding him to that group made the error message disappear.

I'm still not hearing any sound, but that might be due to some other problem, located within the applet itself.


Nowadays there is no problem mounting a NTFS disk for read and write in Ubuntu. To make it effortless you can do like this, it's quite a few steps:

Find out what the UUID is for the NTFS disk. blkid -l will give you a list like:
/dev/sda1: UUID="9272-FF30" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="ed4acd72-8320-45db-b661-1976189c1da5"
/dev/sda2: UUID="f9a58a66-94ea-4ab7-a214-019912085453" TYPE="ext4" PARTUUID="0852f2b3-cf16-4c9e-9886-82e0b35c81cf"
/dev/sda3: UUID="558179d8-c6c3-41e3-9cd7-08da53b68df8" TYPE="ext4" PARTUUID="0ad691be-1d64-4ba1-bf70-8682818aa6b8"
/dev/sdb1: UUID="BC2E8B1A2E8ACD38" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6dbd7f38-fe9e-4eb5-9769-2803188075b8"

If you get more than one NTFS partition you can find which one by looking further
with lsblk and/or blkid -l but for now I assume that we found the NTFS
partition above.

Make sure you have the NTFS driver installed
dpkg -l | grep ntfs

which, if installed, will give an output something like this:
ii  libntfs-3g883   1:2017.3.23AR.3-3ubuntu1   amd64  read/write NTFS driver for FUSE (runtime library)
ii  ntfs-3g         1:2017.3.23AR.3-3ubuntu1   amd64  read/write NTFS driver for FUSE

If you don't get any output with the dpkg command then install the NTFS driver
with:
sudo apt install ntfs-3g

which will install the NTFS runtime as well

Make a mount point for the drive e.g. sudo mkdir /mnt/ntfs (name it whatever
you like, this is just an example) and make it yours with
sudo chown jonathan:jonathan /mnt/ntfs (if jonathan is your user name)

Edit /etc/fstab and add the line (with the UUID you found):
UUID=BC2E8B1A2E8ACD38 /mnt/ntfs ntfs-3g   defaults,nls=utf8,umask=027,dmask=027,fmask=137,uid=1000,gid=1000,windows_names 0 0

where the masks give you read/write for everything on the drive so be careful if
this is your Windows installation disk. Also note that I assume that you have
user and group ID 1000. If not enter your values. If you don't know, find out
with id -u jonathan and id -g jonathan

Mount it with sudo mount /mnt/ntfs. It will automatically mount at every
start. If you still have problems with write permissions you have to turn
off fast startup in Windows as suggested by @sudodus in the comments above.


Open a terminal and enter the command
sudo apt remove usb-creator-gtk

You can further run sudo apt autoremove to remove its unused dependecies.


18.04 custom icon from .desktop file not populating in dock

[Desktop Action My-Custom-Action]
Name=Name of the Option
Icon=songsheet.png
Exec=java -jar /home/hgh/BIN/SG02.jar

"Icon" should specify a full path to the image

I've never seen this type of entry in a .desktop file and I've created and edited quite a few of them. I'm not saying that you're wrong. Also, there's no need for the "StartupWMClass" entry or even specifying locale as in your "GenericName[en_US.UTF-8]" entry and your "Comment[en_US.UTF-8]" entry ( just remove [en_US.UTF-8] ), unless you're planning on packaging your application for installation on another user's computer.

I see the "Categories" entry is missing, although I'm not entirely sure it's needed. It's used by the system when generating entries for the Open With... dialog and possibly when generating menu items for the Applications button on the desktop.

Other than that, everything else looks OK to me.


How to Expand , Resize "extended partition"?

You only can resize (except expanding by moving the right border; depending on the file system) partitions that are unmounted.

Every partition that is in use by your system is mounted. You can see it in gParted when there is this key symbol right to the partition name.

So you have to unmount the partitions inside the extended partition (sda5, sda6, sda7) and then the extended partition (sda3) itself. This is done by selecting "unmount" in the context menu of the partition in gParted.

But stop! Ubuntu will not allow you to unmount the partitions it is running from. Therefore, you have to boot your PC from a live medium (e.g. Ubuntu installation DVD) and run gParted inside this live sessions, where no hard disk partitions are mounted.

Note that partitioning is always dangerous and can lead to data loss or errors at boot time. So make sure your backups are valid and up to date!


/Drive_2specifies a path starting at root.

/Home/Drive_2is already more appropriate but I guess you will mean /home/<your userid>/Drive_2 where, of course, you have to replace <userid> by the appropriate mention.

Another possibility if Drive_2is a subdirectory of your curent directory is ../Drive_2 where .. stands for the parent of the current directory.


How do I upgrade Ubuntu without it removing ia32-libs?

ia32-libs is obsolete and was removed from Ubuntu ages ago. If you have unofficial packages that depend on it, contact their respective developers about obtaining a more recent version.


What happens if we add a dot at the end of sudo `apt-get autoremove`

Wow, first don't do that. The command:

apt-get autoremove a_packet_name

Will remove the specified package and all it's dependencies. But you can use regular expression as package names. So a packet name of . will match every installed packages on your system. Indeed very harmful!

Additional details from man apt-get:

  If no package matches the given expression and the expression contains
  one of '.', '?' or '*' then it is assumed to be a POSIX regular
  expression, and it is applied to all package names in the database.
  Any matches are then installed (or removed). Note that matching is
  done by substring so 'lo.*' matches 'how-lo' and 'lowest'. If this is
  undesired, anchor the regular expression with a '^' or '$' character,
  or create a more specific regular expression.


My laptop keeps locking on lid close, ignoring my settings

Possible workaround: In System Settings > Brightness and Lock switch off 'Lock'. The downside is that your system also cannot lock anymore after a set time.

http://ubuntuforums.org/showthread.php?p=11880774

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


lubuntu vs ubuntu decision for a Dell Dell XPS 400

Lubuntu will almost certainly perform better. My brother had an old 512MB Dell desktop that I brought back to life. I first tried vanilla Ubuntu but it lagged horribly, then tried Lubuntu and it ran like it was brand new.


Installing ubuntu in a lenovo thinkpad 490s?

You don't need to rely on others.

It's easy to try Ubuntu on any device using Live CD. You can try Ubuntu without installing it.

Try Ubuntu through LiveCD


How do I either uninstall Ubuntu or get my wireless internet to work

Using either Snaptic Package Manager or Ubuntu's own Software Centre, remove "bcmwl-kernel-source" if it's already installed.

Next, search for "firmware-b43-installer” and “b43-fwcutter” and install both.

Finally, running Software Sources and checking the Additional Drivers tab you should find Broadcom STA Wireless Driver that you can select, install and on reboot hopefully have wireless working ok...


Cannot access to internet after installing 11.04 alpha2

Unlike Windows Ubuntu doesn't create system restore points to 'rollback' to.

You would have to reinstall 10.10 from scratch but you can back up your data in your /home directory and start over.

Natty is only an Alpha release and not recommended for a production install - you'd be better off to install it onto a USB stick and run a live version to test and report bugs.


I figured it out, actually it was battery's problem but it is also true that somehow Ubuntu drops our battery capacity comparing to Windows


How do I partition my LENOVO LEGION Y720 to dual boot with Ubuntu

I had a hard time dual booting Lenovo Legion Y720. Especially, configuring both GUI enviroment and CUDA environment was very tough.

Here are the steps on how to do it:

Open Disk Management in Windows. Make free space in HDD. I recommend giving half of the disk space. (Disk Management)
Enable secure boot and disable fast boot in the UEFI. Press Fn + F2 during booting.
Normally, you disable secure boot, however, Samsumg SSHD is unable to recognize the firmware unless using secure boot. This means if you don't enable secure boot, you can't install Ubuntu on your PC.
Open Settings -> Update & Security -> Recovery -> Advanced startup. (Advanced Setup  )
Click USB Device. (USB Boot)
Don't use GUI Live CD. Because nouveau open source NVIDIA graphics driver have bug in GTX1060 support. Write nomodeset in the livecd cmdline script by pressing live cd grub screen by pressing e. If you couldn't succeed by using the normal Live CD, use Ubuntu Server. I did configuration with Ubuntu server.
Lenovo Legion Y720 uses UEFI, so use a partition that support UEFI. Click UEFI support in the installer.(e.g. gparted, ....)
Do Manual setup of ubuntu partition.
(How to use manual partitioning during installation?)
If you are using ubuntu server but not configured GUI environment, install one desktop package with any of these commands, I prefer xubuntu-desktop

apt install ubuntu-desktop
# or
apt install xubuntu-desktop

If you want to use your GPU in the X server, install nvidia-375 driver.

apt install nvidia-375 nvida-prime nvidia-xconfig

If you want to use CUDA, install CUDA from the run file which the NVIDIA web provides. Don't use package install because the package installer updates the driver to new version and GTX1060 doesn't support CUDA in the new driver version.(use nvidia-375 to support CUDA)


Given 777 permission to Sentrifugo folder and that resolved this.


How do I re-activate PulseAudio? (followed guide on skype.com)

Re-enabling PulseAudio autospawn

What you did by following the guide, was to prevent PulseAudio to start automatically when you login to your account. If that worked for you, than changing autospawn=no to autospawn=yes should also work. I would prefer doing this from the terminal (Ctrl+Alt+T) by running the following command:

sed -i 's/autospawn=no/autospawn=yes/g' ~/.pulse/client.conf

Now you just need to reboot or logout and login to let the changes take effect.

Configure Skype

The guide you followed didn't setup ALSA, but configured some sound devices to specifically use ALSA devices instead of the default device or something else. So, going to Main Menu > Options > Sound Devices and revert the settings back to default will get you back to the starting point.

Are you using KDE/Kubuntu or Unity/Ubuntu?

I want to point out that Phonon is a component from the KDE desktop. If you are not using KDE/Kubuntu, then installing KDE might not be the straightest solution to fix your issues.


I cant get samba to set proper permissions on created directories

I think you need to use the following parameters:

# I changes the permissions to rw-rw-r--
# You should be able to change them to 775 if you need the files to
# be executable
create mask = 664
force create mode = 664
security mask = 664
force security mode = 664

# I set the SGID flag here as I thought this is what you wanted
# You could change to 0775
directory mask = 2775
force directory mode = 2775
directory security mask = 2775
force directory security mode = 2775

I was looking for a nice explanation of how these settings work, but could not find anything better then man smb.conf

You will have to scroll down a bit for those options.

Basically, in a nutshell, windows permissions are not the same as unix (linux) and it is a bit odd how samba maps permissions.


I can't use all of my ram in Ubuntu 18.04.4 LTS

Have you upgraded your RAM yourself at some point? Are your RAM components of different size? Your motherboard may require that the larger RAM has to go in the first slot, and the smaller RAM has to go in the second slot.


This is a work-around that has got the mic working.
As normal, I plug in the mic and set it as an interface and it doesn't work.
Then, on the mic, I hit the menu button and scroll down until I reach the input option. I turned the input off. Then turn it back on.
Then, back on the computer, in settings, I set the mic input to H2.  Now it works.
Literally, turning it off and back on again, but in the software on the mic.  For more details on this, see the manual: https://www.manualslib.com/manual/458720/Zoom-Handy-Recorder-H2.html?page=76#manual


To me Okular saves the annotations automatically, just like @edwinksl says in the comments. Using Okular Version 0.24.2 & PDF Backend Version 0.6.5 (whatever that is) & KDE platform Version 4.14.16


rEFind - Installed, configured as primary boot but does not boot, only grub

Well, now it's working! I Reinstall the refind and then:

sudo efibootmgr -0 0001,0000,3000,2001,2002
sudo refind-install
sudo refind-mkdefault

Turn off computer and waiting some time to use. Now all back to work, with my custom theme too!


ERROR (dkms apport) when upgrading kernel from 3.0.8 to 3.9.4

As it turns out, the new kernel was in fact installed even though I got an error.

I was also advised (I did not try it) to try

 sudo apt-get purge bcmwl-kernel-source

to avoid the error.


Is it safe installing Ubuntu 20.04 now or do I need to wait until 20.04.1 is released?

Although it is recommended to wait until the first point release is launched to upgrade Ubuntu to the latest LTS release, there is nothing wrong with doing a new installation of the latest LTS release after it is officially released.

Regarding the Firmware bug: ACPI region does not cover the entire command boot message try switching off TPM and ACPI in the BIOS.

ACPI Configuration in BIOS

TPM in BIOS


Packet Tracer 7.1.1 crashes on startup, Xubuntu 18.04

It seems that you have missed some dependencies, you can install them with:

sudo apt-get install libqt5webkit5 libqt5multimedia5 \
libqt5xml5 libqt5script5 libqt5scripttools5

Also you can try the method from my other answer for 16.04 LTS:

cd /tmp
wget http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb
sudo dpkg -i libicu52_52.1-3ubuntu0.8_amd64.deb

But even after these actions sometimes it really crashes with Segmentation fault (core dumped) even if launched directly with /opt/pt/bin/PacketTracer7.

See this question with great idea of running it from GDB. The problem comes from some code in CPT, which is linked to LibSSL.

As it is proprietary software, you should ask Cisco for support and/or special deb-package for Ubuntu 18.04 LTS.


It seems that there was a folder created accidentally in the place where the external drive was trying to mount with the same name. Deleted the empty directory and then it mounted snd showed files as usual.


A partial upgrade is sometimes required if certain dependencies of packages changed during an update. It will not upgrade you to any other Ubuntu release, unless you've manually changed your apt sources to point at a newer release.

If you choose Continue in that dialog, you should see the list of packages to  update. Some of those may not be selectable. What Partial Upgrade does, is the extra bits necessary to resolve the dependencies of those packages. Usually, it means installing a new package or two.

It is perfectly safe and normal for this Partial Upgrade request to happen, depending on the packages you have installed.


I can just suggest some reading material:

Part III. Theming in GTK+

Making GTK3 themes – Part 1: Basics

And links on this page

This link should help?


Restore laptop to manufacturer's pre-installed version of Ubuntu 12.04 LTS

Unfortunately my laptop's wifi isn't supported by the normal Ubuntu releases. The only version that will work is the pre-installed version.

This is a contradiction. If it worked before on a previous installed Ubuntu it will always work (bugs excluded ;-) ). The manufacturer probably pre-installed something extra you failed to install with your installation.

  Can the HP version of 12.04 be downloaded?

No. Well yes, but the HP website points you to http://www.ubuntu.com/download/desktop So you would still download the version you claim does not have a working wifi. So there is no HP version...

  Or is there something I can do in the terminal to restore it?

If wifi is the problem, fix wifi. Re-installing a complete OS is (in my eyes) a waste of time. If needed please create a new question and, amongst others, include information about the chipset used for this wireless. But before you do that first have a look at some of the topics on AU regarding HP and wifi (cuz you will get your question closed as a duplicate):

Wireless problems on HP
in case it is a Broadcom BCM4311: How can I get Broadcom BCM4311 Wireless working?
Wireless not working on HP pavilion dm5
Why is Wifi not working on my HP laptop?

These show 2 general problems:

the wifi could be switched off due to a hardware switch.
the driver might be a BCM4311 and that needs to some extra installation.

It might also be solved blacklisting rt2800pci (see the links above on how to do that). But there is a lack on details on the problem to actually help :)

In short: the version that worked probably had a module blacklisted and you did not know it was blacklisted and that is why your installation does not work.


The shortcut is still there for what I know.

There is perhaps some other application hiding that shortcut?


How to completely purge everything that is associated with nvidia?

Regular expressions can help you here.

sudo apt-get purge nvidia* bumblebee*  <any other packages>*

You could also open synaptic package manager, search for primus and mark it for complete removal.


You can apt-get install nvidia-settings and then run it as root (sudo nvidia-settings works fine). You can choose which twin monitor set up you want from there and then log in/out again (or otherwise restart X).


the disk drive for /etc/fstab: is not ready

I made a crazy mistake! When I edited fstab, by mistake I pasted UUID on the first line just before # /etc/fstab.

wrong:

UUID="9dd9d9a0-79f1-4fed-86ba-9a1b1ea3f1cc"# /etc/fstab: static file system information.

correct:

# /etc/fstab: static file system information.


Which target in debian/rules do I need to use for generating documentation?

You're looking for override_dh_build-indep From the manpage for the dh command

OVERRIDE TARGETS
       A debian/rules file using dh can override the command that is run at
       any step in a sequence, by defining an override target.

       To override dh_command, add a target named override_dh_command to the
       rules file. When it would normally run dh_command, dh will instead call
       that target. The override target can then run the command with
       additional options, or run entirely different commands instead. See
       examples below.  (Note that to use this feature, you should Build-
       Depend on debhelper 7.0.50 or above.)

       Override targets can also be defined to run only when building
       architecture dependent or architecture independent packages.  Use
       targets with names like override_dh_command-arch and
       override_dh_command-indep.  (Note that to use this feature, you should
       Build-Depend on debhelper 8.9.7 or above.)

Regarding the Policy bit... A build-indep target is being called, just not your build-indep target.


kmail "unable to store downloaded mails. failed to append item"

I found a workaround to the problem here: https://www.mail-archive.com/kde-bugs-dist@kde.org/msg102147.html


Dual boot on mac with osx system drive encrypted by file vault?

I don't believe you need to remove the encryption.  Just open up Disk Utility, select your primary drive(the drive, not a partition), click the 'Partition' tab and you should be able to carve out a chunk of the drive by resizing the rectangle representing your disk space. Then you can use Bootcamp(available in the App store) to make your machine multi-OS.


Concatenate of Hostname in script is not working

The solution is

scp ../output/OutputFile50.txt sarah:~/client/output/OutputFile50\`hostname\`.txt

the hostname enclosed in \ is working fine


So the problem was the mouse, of course. Probably an hour after I posted it occurred to me that the wireless control was between the mouse and the USB dongle and not software dependent.


How can I set a specific Operating System to boot using bash (UEFI)

All you need are 2 commands:
grub-set-default {NUMBER}
update-grub

where {NUMBER} is the one you want to boot into.
Change {NUMBER} to a variable, put these 2 in a script, execute with sudo {file} {number}.


Possible duplicate of: KDE Connect detects phones but won't detect other computers
See if suggested solution solve your issue too.
Other reports:
https://forum.kde.org/viewtopic.php?f=18&t=168955
https://bugs.kde.org/show_bug.cgi?id=429690
https://bugs.launchpad.net/ubuntu/+source/kdeconnect/+bug/1907786


Desktop launcher with .png files to the application

I for some reason got it up and running. Sorry I'm not sure what I did wrong in the first place. Nevertheless I put my .png file under /usr/share/applications and now it's working.

Any how. Thank you for trying to help me.


Why wmctrl doesn't work for certain windows?

it's definitely a bug in wmctrl.
after digging around wmctrl code, it seems that the bug is in translating window name strings to the corresponding Window ID (or XID). so wmctrl -r "window name" -b add,above is not reliable.

as a workaround, use XID instead, i.e. wmctrl -i -r window_id -b add,above. in your case , wmctrl -i -r 0x0520000b -b add,above should work.

most window management facilities are implemented as X window Properties. you can view all the properties of a window by a command -- xprop.

NOTE:

Windows that have the machine name column as N/A.
the machine name property is WM_CLIENT_MACHINE. it's rarely used. and some GUI toolkits may not implement them.
you can view a window's machine name property by run following command line and click the window

shell> xprop | grep MACHINE

As for Always On Top, it's another property value _NET_WM_STATE_ABOVE.
to check it yourself,
run following command line and click the window

shell> xprop | grep _NET_WM_STATE


How to retain Enigmail/OpenPGP passphrase with Kubuntu?

The only thing I can say as a beginner is that you will need to get this in line. Keys are about security and you should have control of the tools for such objective.

As of MAN :


Grub2 not install on Surface 3 (non-pro)

Try creating your partitions ahead of time. Boot into ubuntu, select live, and open gparted. Create the following, in the ext4 format, and make sure to label them :

/home - where your files will go. Your main workspace area
/root - your root partition, where ubuntu is installed to.
/linux-swap - this is used when your RAM flows over, to prevent crashes.

Linux-swap should be half your ram, but maximum 4 gigabytes. /root is good at about 15 GiB, and /home can be as big as you want it. Make sure secure boot is off, as well as fast boot. Then click manual installation, and select the partitions you've created. It should work from there. Good luck!


How to change the default system of dual-boot using Wubi?

Click setting and select wubi as default operating system from drop-down menu. Click OK.


I want to uninstall Ubuntu but I don't have Win 7 CD to fix MBR, work around?

You DO NOT need Windows disks and you DO NOT need to uninstall the previous Ubuntu in order to install a new version. You also do not need to boot into Windows to remove partitions. Just boot from Ubuntu 12.04 LiveCD and install on the same partition where your current Ubuntu is installed. During the install the partition will be re-formatted and GRUB re-installed, leaving no trace of your old installation.


How to set crontab for python script daily for 3 times a day for in a week for all 7 days?

I had the solution which was answered by another question of mine.

How to schedule a cronjob for python script to be executed on weekdays?

0 8,15,18 * * 1-5 /usr/bin/python3 /home/[username]/Documents/Python/script.py


Ubuntu Netbook installation fails on Allocate Drive Space screen, No Root File System is Defined

Looking at your top screenshot then what you need to do is select one of the partitions, then click on Change... below. On the dialogue that appears, you should select the ext4 file system, make the mount point / (the filesystem 'root') and also click the box to format this partition. Then close the dialogue. You should now be able to proceed with the install.

Please note this will remove Windows XP from the netbook (which would probably be very difficuly to restore) - so I would advise you check the LiveCD is working with the hardware  (e.g. wireless) before going ahead with the install..


Cannot launch lxc containers get 'error: a remote name must be provided'

In the version of lxd/lxc that comes with Ubuntu 16.04 you need to prefix local: for all resource names that are on the local LXD server. So the correct command becomes:

lxc launch ubuntu:16.04 local:c1

In an ideal world, all the blog posts from Stephane and others, which constitute the best documentation for lxd/lxc, would be edited to include this.


background process outputs to the console

[1] is the background job number, used for shell builtin commands like fg and bg which manage multiple tasks running in the same shell. jobs lists the current jobs.

16320 is the process ID number of the task, useful if you want to kill it or similar.

[1]+ Done indicates the background process has exited. Since you requested to run it in the background with ./test.sh &, it didn't wait for it to finish before giving you a fresh prompt (even though it finished almost immediately). The shell therefore notifies you the next time it gives you a prompt.

The + indicates the current (most recent) job, if you have multiple jobs running.

See the bash manual for more information.


How to get NetExtender VPN client on Ubuntu 13.04 working?

Sure enough, it was a routing problem.

With the connection active, I compared the routing tables between a Mac that worked and Ubuntu that did not, and sure enough the route from my public (dynamic) IP to the gateway inside the tunnel was not there.  The NetExtender logs also indicate "Error determining existing route to ssl-vpn"

To fix it, in a terminal window, do:

sudo route add -net (your-VPNs-public-ip) netmask (your-VPNs-netmask) gw (your-tunnels-gateway) dev (your-ethernet-device)

For example, mine was something like this.  It took a few tries in my case as the connection kept dying and reconnecting - something to do with the Sonicwall thinking the connection wasn't active?:

sudo route add -net 1.2.3.4 netmask 255.255.255.255 gw 192.168.0.1 dev wlan0

Got the idea from here:  http://ubuntuforums.org/showthread.php?t=2146122&highlight=netextender


How to display file properties via terminal?

Use the stat command to know the details of the file. If file name is file_name, use

stat file_name


Crontab does not execute command to lock screen

Your problem is due to a difference in "execution environments".

Your shell script, when run "from terminal" (under the GUI environment), has several environment variables defined in its execution environment that point to the screen you're trying to lock.

When you run from cron (a non-GUI environment), these variables are not defined, and /usr/bin/gnome-screensaver-command cannot find the screen to lock.

You can cheat, and pass GUI information to your cron environment by defining the DISPLAY environment variable in your script, near the beginning:

# check with echo $DISPLAY in GUI
export DISPLAY=${DISPLAY:-":0"}

You can compare execution environments by executing the following command in each environment:

(echo "=== set ===";set;echo "===env ==="; env | sort;echo "=== alias ===";alias)

redirect the output to a file, then compare (diff) with other environments's results.

Here's how I found out about /usr/bin/gnome-screensaver-command:

walt@bat:~(0)$ strings /usr/bin/gnome-screensaver-command | grep DISPLAY
walt@bat:~(1)$ ldd /usr/bin/gnome-screensaver-command
    linux-vdso.so.1 =>  (0x00007ffdda145000)
    libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007faac6507000)
    libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007faac62b4000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007faac5fa3000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faac5bd9000)
    libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007faac59d5000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007faac57bb000)
    libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007faac5599000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007faac537e000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007faac5176000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007faac4f06000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007faac4ce9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007faac688f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007faac4ae5000)
walt@bat:~(0)$ grep -l DISPLAY /usr/bin/gnome-screensaver-command /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 /lib/x86_64-linux-gnu/libglib-2.0.so.0 /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libselinux.so.1 /lib/x86_64-linux-gnu/libresolv.so.2 /usr/lib/x86_64-linux-gnu/libffi.so.6 /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libdl.so.2
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
walt@bat:~(0)$ strings /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 |grep DISPLAY
_u == G_FILE_ATTRIBUTE_ID_STANDARD_DISPLAY_NAME
Cannot autolaunch D-Bus without X11 $DISPLAY
DISPLAY
walt@bat:~(0)$


how can i host a regular website and a python flask web app at the same time using apache

This has been answered at https://stackoverflow.com/questions/14181364/running-a-flask-website-in-a-subdirectory-with-apache
That said - I'd recommend to host your flask app via a subdomain, eg. flaskapp.website.com - this makes it easier to maintain.


Firefox pre-quantum would bring my system to a crawl.  This was remedied recently with FF-quantum.  If this remedies the issue, feedback is appreciated.   My Ubuntu laptop is a 1.7 Ghz quad-core with the maximum of a 8GB RAM and is now very usable with the FF upgrade.  Ring the bell by up-voting this post if you have installed FFQ and the performance is now reasonable or better.


Ubuntu 16.04 Eclipse launcher icon problems

I have been able to resolve this by just removing the eclipse.desktop file from ~/.local/share/applications and then exiting and launching eclipse again:

I followed this solution: https://askubuntu.com/a/735924


Note: This is a copy of answer from new OP question, Ask for removal if he/she posted his/her answer.

Starting of, you will have to download the ISO file from the official
National Instruments site:
https://www.ni.com/es-mx/shop/labview/select-edition/labview-community-edition.html
Once the ISO file is downloaded, extract the files within it wherever
you want.
Now, as mentioned earlier, as far as 2020 SP1 version, LabVIEW isn't
supported for Ubuntu, the files within the extracted folder are .rpm, which, on itself won't install well most likely. This means
you need to turn the .rpm files to .deb, if you have never
done this, it is rather simple, you need to install Alien (in case you
don't have it installed), in the terminal this command should get the
job done:
sudo apt-get install alien
Once you have Alien installed, in your terminal, go to the folder
where you extracted all the files from the ISO, once there, you'll
perform the .rpm to .deb conversion:
sudo alien *.rpm --scripts
This will convert ALL .rpm files to .deb, more precisely,
it will create all the corresponding .deb files without deleting
the .rpm ones, don't worry about the latter, they will be
ignored in the rest of the process.
Once the alien command ends, it is time to install the files, to do
so, run the next command:
sudo dpkg -i *.deb
When you do it all the .deb files will be installed.
Here is where the real mess began when I performed this process, the
installed files should be in: /usr/local/natinst/LabVIEW-2020-64
(The last direction may vary as this post gets older, but you should
find that folder in /usr/local/natinst.
I encountered some problems at this stage, because i tried to execute
the ``labviewcommunity``` file with:
./labviewcommunity
Yet, when doing so, I got an error message, sorry if I cant give you
the details on the precise error, don't have record of it, but
I found a solution online:
https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Cannot-launch-visaconf-because-Can-t-find-library/td-p/4062652?profile.language=es
In case you have problems with that solution, what I did was,
downloaded this file:
https://forums.ni.com/ni/attachments/ni/140/82429/1/libniPythonInterface.tar.gz
And when you extract its content, the initial folder is named usr,
you'll have to copy and paste all the contents from this file into
your usr folder in exactly the same folders as they appear on the tar
file.
Once you do this, labviewcommunity ran, it asked me to log in, and
when I did so, Firefox told me that i was authenticated but LabVIEW
said that the authentication process had failed. I got stuck trying
too much, until just to see what happened, I decided to try a file
named labviewprofull with:
./labviewprofull
And to my surprise, this worked, it opened a fully functional LabVIEW.
To create a desktop file in order to open LabView from your desktop,
you can create an empty file in the text editor, and put in this:
Type=Application Terminal=false Exec=env
LD_LIBRARY_PATH=/usr/local/natinst/LabVIEW-2020-64
/usr/local/natinst/LabVIEW-2020-64/labviewprofull
Icon=/usr/local/natinst/LabVIEW-2020-64/etc/desktop/icons/labview.png

Don't forget to change the Icon location to wherever you have the file for the Icon of LabVIEW.
Having done so, save this file in your desktop as LabVIEW.desktop,
right click on it and select Allow Launching. This should allow you to
have LabVIEW community on Ubuntu. Don't forget to comment in case you
have some problems, see if either me or someone can help.
I hope this turns out to be useful to someone else, good luck ;)


Building a binary package results in a .deb file. This usually does not contain source code, as build artefacts are binary.

Exceptions to this is software written in Python, PHP, and other interpreted languages. Because it's interpreted, you can't build without restricting the end users to change the environment (e.g. Python version). And yes, there are workarounds for this, but this is not recommended. The Debian policy for Python for example is to compile it at installation time (Debian wiki: Python/Policy).

Feel free to inspect the contents of your package after building. Also see examples of open source software binary packages.

Edit - Using PPAs:

When uploading a package to your PPA, it will be a source package and built by Launchpad cloud servers to a binary package. Both will be published. There's no way build your packages locally and publish your binary-only packages to a PPA. You'll have to set up a repository yourself.


How to get PID of shell running in a terminal window under mouse?

If terminal has only one shell process, I cannot see a problem.

read __ __ TERM_PID < <(xprop _NET_WM_PID) &&\
SH_PID=$(ps --ppid "$TERM_PID" -o pid=)
kill -STOP "$SH_PID"

Works for XTerm, should work for GNOME Terminal too, I believe.

Otherwise – if there may be more than one shell running under single terminal process (in several windows, tabs, regions, via multiplexer, etc), it’s not clear from the question, what do you want.


Mozilla Firefox middle mouse button does not work

It turned out that the middle button of my mouse has been broken :(

The correct settings for the desired function are (using @pomsky's comments):

middlemouse.contentLoadURL=false

middlemouse.openNewWindow=true

middlemouse.paste=true

middlemouse.scrollbarPosition=true

For middleclick scrolling I set

general.autoScroll=true


Increase brightness in Laptop using console mode

xrandr does not work because there is no X session at the console. Hopefully changing /sys/class/backlight/intel_backlight/brightness value will restore the brightness immediately. You should try

sudo echo 100 > /sys/class/backlight/intel_backlight/brightness

You can find more about brightness control here.


Will removing Windows 8 and disabling secure boot cause any problems using Ubuntu?

I have a Dell XPS that came shipped with Windows 8.  I turned off secure boot in the bios and used Ubuntu 12.10 install disc.  I was able to install it side by side Win 8 with no problems.  At startup and I an option now that allows me to boot using the windows UEFI mode, or something similar, or just boot in Ubuntu.  Both work fine.

Retrospectively, I don't think that I needed to turn off secure boot in the BIOS.  I am not sure what it actually did but I think Ubuntu was clever enough to figure it out for me.


The solution was that I as the user did not have ownership of the

~/emacs.d/

folder, so I type in the following command to solve it:

sudo chown -R user ~/.emacs.d/

However the GLib-Warning with the sudo emacs is a bug in emacs that hasn't been resolved.


Difference between '.' , '?' and '*' in regular expressions?

You may be confusing regular expressions with shell globs

In regular expression syntax . represents any single character (usually excluding the newline character), while * is a quantifier meaning zero or more of the preceding regex atom (character or group). ? is a quantifier meaning zero or one instances of the preceding atom, or (in regex variants that support it) a modifier that sets the quantifier behavior to non-greedy.

In shell globs, ? represents a single character (like the regex's .) while * represents a sequence of zero or more characters (equivalent to regex .*).

A couple of references you may find helpful are http://www.regular-expressions.info/quickstart.html and http://mywiki.wooledge.org/glob


System Monitor and top reporting wildly different memory usage

By default, top does not sort by memory usage, but CPU usage. If you're manually adding everything up, you may miss some memory hogs programs which use almost no CPU.

To sort by memory usage, press Shift + F followed by n. Press any other key to return to the overview.

The system monitor panel calculates the memory used, minus buffers and cache, without swap.

Total RAM: 2993
RAM in use (without buffers and cache cache): 2563
2563 / 2993 = 86%

Your computer became slow because it began to swap. Try upgrading your RAM for better performance. The money is well worth it.


Extract multiple iso files to one directory

Use the -o (output destination) switch to 7z and possibly -t (archive type). A common mistake is to put a space after 7z switches, which will cause the command to fail. Use the x option to extract with full paths. Install 7zip if you don't have it:

sudo apt install p7zip-full

You can specify the same output directory for each iso. The below commands assume you want to call the output directory outdir so adjust as needed.

The following command is for split archives that need to be recombined, which may apply in your case - try this first (replace name-of.iso with name of the first file):

7z x name-of.iso -tsplit -ooutdir

It that errors out cannot process file as archive or similar, then the files are not from a split archive. To extract them, for each file you can do

7z x name-of.iso -ooutdir

Or (useful if you have many files) you could use a for loop to extract all of them at once:

for f in *.iso*; do 7z x "$f" -ooutdir; done


Cant shut down X-windows with out system hanging

Pres Ctrl+Alt+F1, login with your account, run following code:

sudo service lightdm stop

After you did your job run following to start X-Window again:

sudo service lightdm start


Windows 7 and Ubuntu on two different hard disks?

What drive was BIOS set to boot from when you installed Windows? Windows installs a 100MB boot partition to the drive that BIOS boots from even if you install Windows to another drive?
If Windows is not fully on one drive, it may be best to reinstall, although you can copy the boot files from the boot partition to the install. The main reason for a separate Boot partition with Windows is so you can encrypt the main install as boot files cannot be encrypted. But it also has recovery (repair) files, so you should make the Windows repairCD before doing anything else.

You can always disconnect the Windows drive and then just install Ubuntu into the 160GB drive. After reconnecting Windows you can run the sudo update-grub to find Windows and add it to the grub menu.

If you have using Something Else or manual partitioning it should give you all the options of either hard drive and which drive to install grub2's boot loader into. You want grub in the MBR of the Ubuntu drive and Windows boot loader in the MBR of the Windows drive.

You can also use gparted from liveCD or separate download of gparted to partition drives. Only use Windows tools to shrink Windows if needed (and always immediately reboot so it can repair itself to new size, but then use gparted to create Linux partitions. The you can use Something Else to specify which partition is / (root), and its format (ext4) and which is swap. If you want separate /home you can also create and mount that.
Best to have a shared NTFS data partition for any data you may want to share between Windows and Linux. I tend to prefer smaller system partitions for both Windows & Linux & larger data (or /home) partitions.


How can I get my wireless webcam to work?

I am fighting with a similar problem right now.

According to the thread on this website, your device must be recognized as a video device by the kernel. Maybe it isn't, although it should.

Run

lsub

to get a list of devices currently plugged in via USB.

Then run

lsusb -d YOUR:DEVICEID -v | grep -i "Video"

Quoting from the thread

  after you connected some usb device to the host it will be checked by
  usb-core driver every device has some class description. if your
  device say, it belong to: 14 - video class, uvcvideo will initiate it.
  if the device is not video class device, then there is no way to
  uvcvideo will know about it. (except you will force it, but there is
  no guaranty)

"Forcing it" requires more work, supposedly. Can't say more right now, sorry.


Look at pdfshuffler. It's available in the repositories:

$ apt show pdfshuffler
Package: pdfshuffler
Version: 0.6.0-8
Priority: optional
Section: universe/x11
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 186 kB
Depends: python-gtk2, python-poppler, python-pypdf2 | python-pypdf (>= 1.10), python:any (<< 2.8), python:any (>= 2.7.5-5~)
Homepage: http://sourceforge.net/projects/pdfshuffler/
Task: ubuntustudio-publishing
Download-Size: 31.4 kB
APT-Sources: http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: merge, split and re-arrange pages from PDF documents

From its manpage:

  PDF-Shuffler is a small python-gtk application, which helps the user to merge or split pdf
         documents  and  rearrange  their  pages  using  an  interactive  and  intuitive  graphical
         interface.   In  the  current  version, page rotation and cropping is also supported. PDF-
         Shuffler is a frontend for python-pyPdf.


You can use -map to choose which streams you want, then use -c copy to stream copy (re-mux).

This example will copy the video stream(s) from hd.mkv and the audio stream(s) from sd.avi:

ffmpeg -i hd.mkv -i sd.avi -map 0:v -map 1:a -c copy -shortest output.mkv

If you want to offset one of the inputs see the -itsoffset option.


Language Support does not run (crashes) in 10.04

First of all: it sounds like a bug, report it as such.

Some insight: the error itself Python itself is described here, basically what it's saying is that the locale string that is to be parsed should be split on "_" and broken up in two parts (one called LCODE and the other CCODE)... but there are more than two parts, so Python complains. Locales tend to look like en_US.UTF-8, so that's why splitting them up on "_" is a good idea: one says it's English, the other part says it's specifically US English.

Perhaps you have locales that don't follow this format installed (unlikely, but possible?)?


My computer boots to a black screen, what options do I have to fix it?

If you are trying to install Ubuntu

1. Ensuring your CD/DVD or USB flash drive burned/written correctly and not damaged:

How to MD5 test Ubuntu ISOs. See also: Where to find the checksums of Ubuntu ISO images? or MD5 hash for ubuntu .iso (14.04 through 17.04)
Check out these steps to see how to check your CD once you boot into it to make sure it's ready to go.
Verify the integrity of the burned CD/DVD or written USB flash drive (this also checks that it's accessible by the computer on which you wish to install).

2. Black/purple screen when you try to boot the LiveCD

The Ubuntu installer's startup portion is sometimes incompatible with certain graphics cards. Fixing it and getting to the Ubuntu Desktop to try or install it can often be surprisingly easy fix: the nomodeset parameter. To see if it works for you:

Boot from the Desktop Live CD and press the ↓ key when you see the below:

Press Enter and select English:

Press F6, use the ← ↑ → ↓ keys to go down to nomodeset, and press Enter. An x will appear to its left. Then press Esc, and press Enter to "Try Ubuntu without installing."

You can also try acpi = off and nolapic if nomodset also shows up as a black screen.

3.  Black screen

or

"you need to load kernel first" and "can not read file/cd0" errors

when installing to an UEFI capable machine:

Ubuntu's installer 'when attempting to run in UEFI mode) will hang and stop due to different manufacturer's implementations of the UEFI specification and will hang in different ways.
To identify if your machine is booting in installer UEFI mode you will see

REF: UEFI Community Ubuntu Documentation Section 2.4

If your machine is CSM capable (which is a full UEFI implementation with an emulated BIOS layer) after selecting any option from the grub list the system will hang at a black screen.

The picture above actually only confirms your DVD/USB booted using UEFI and there will be some means in firmware settings to ensure drives are booted in order to make the UEFI installer run (a solution may possibly be as simple as ensuring SATA is set to AHCI) -  check your vendors manual!  Also check the UEFI Community Documentation Section 2.3 for more details.

What you need to do first is to disable SECURE BOOT in the firmware settings.
If that does not get the Ubuntu installer running, try disabling anything mentioning UEFI in the firmware settings.
Or
If you cannot find UEFI settings then enable CSM - this will disable the UEFI booting of the installer and then allow a legacy/BIOS install of Ubuntu.
Installing grub-efi afterwards will allow UEFI to be re-enabled.  Again refer to UEFI Community Ubuntu Documentation at Section 4

Some machines use a full BIOS with an emulated UEFI layer which may throw errors as described ie "you need to load the kernel first" and "can not read file/cd0"

Not all of these machines implement Secure Boot.  Simply selecting UEFI in the BIOS settings will configure UEFI mode on hard drives. There is no solution for these errors and the workaround is to disable UEFI to enable the Ubuntu installer to run in legacy mode; after which boot-repair can be used to install grub-efi which then allows/needs UEFI switched back on before Ubuntu will boot using UEFI.  Once again refer to the UEFI Community Ubuntu Documentation at Section 4

Black/purple screen after you boot Ubuntu for the first time

This usually happens because you have an Nvidia or AMD graphics card, or a laptop with Optimus or switchable/hybrid graphics, and Ubuntu does not have the proprietary drivers installed to allow it to work with these.

The solution is to boot Ubuntu once in nomodeset mode (your screen may look weird) to bypass the black screen, download and install the drivers, and then reboot to fix it for ever.

Start your computer, and press the Right Shift when booting up, to get the Grub menu. Use the ← ↑ → ↓ keys to navigate/highlight the entry you want (usually the first one).

Press e to edit that entry, which will show you the details:

Find the linux entry as shown above, use the ← ↑ → ↓ keys to get to it, and then  press the End key to get to that line's end (which may be on the next line!).

Enter nomodeset as shown, and press Ctrl+X to boot to where you can successfully install your graphics drivers.

If you are running Ubuntu 12.04 or 12.10, and have a ATI/AMD graphics card, you have to follow the instructions here, otherwise you will run into this problem every time you restart your computer.

LUKS encryption

In case you've installed Ubuntu with LUKS encryption / LVM option, it could be that Ubuntu just asks you for your password - and you cannot see it.
If you have a black screen, try pressing Alt+← and then Alt+→ to switch your tty, this may bring back the password query and turn backlight back on.

If you have a purple screen (maybe you need to set the nomodeset-option also?) and you have encrypted your complete Ubuntu installation, try to just type your encryption/LUKS-password after waiting some seconds (or minutes, just to be sure) and continue with a press on Enter. If this is successfull, you should see your Login-screen just a few seconds later.

Try the Alternate Installer - this is a text based installer that might work better than the liveCD depending on your hardware.
If you do this, you may get a black screen before you even hit grub. A simple Ctrl+Alt+Del gets some users to a usable grub screen
If you have an Nvidia Optimus card you should NOT install nvidia drivers, just use the built in driver, see here:

Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

After selecting boot options you have the opportunity to edit the boot flags manually using your keyboard. Replace quiet splash with no splash to get an idea of what step your system is failing at. Using that information search the forums or the internet for answers from the community.
If you still can't install Ubuntu then unfortunately you've probably run into a hardware specific bug, please see here: How do I report a bug?


How can I get a warning before restart/shutdown?

Introduction

The script bellow monitors all or user-defined application for presence, and if that presence is found - the system will be prevented from shutting down via graphical dialog ( the shutdown via command line won't be affected , as this is task applied by system administrators who know what they're doing).

There are 3 options:

-a Monitor any open applications.

-c Graphically select an app

-s specify .desktop file for app on command line

-h prints the syntax and list of options.

The -c option is appropriate for one session only, where you want to simply click on a window and monitor that. The -a and -s options are appropriate to be added as autostart entries to be launched on system login. -s option can be used with either full path or a portion of it , e.g. either /usr/share/applications/firefox.desktop or firefox.desktop are equally acceptable.

Script Source

The script source is available here or on my GitHub. Users can obtain the script either via cloning the whole repository or using

wget https://raw.githubusercontent.com/SergKolo/sergrep/master/safe_shutdown.sh && chmod +x safe_shutdown.sh

command to obtain just the script itself.

#!/usr/bin/env bash
#
###########################################################
# Author: Serg Kolo , contact: 1047481448@qq.com
# Date: May 14th , 2016
# Purpose: Ensure that user closes all or specific
#          running windows and exits without any work
#          lost
# Written for: http://askubuntu.com/q/771227/295286
# Tested on: Ubuntu 14.04 LTS
###########################################################
# Copyright: Serg Kolo , 2016
#
#     Permission to use, copy, modify, and distribute this software is hereby granted
#     without fee, provided that  the copyright notice above and this permission statement
#     appear in all copies.
#
#     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
#     THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#     DEALINGS IN THE SOFTWARE.

ARGV0="$0"
ARGC=$#

_notify_user()
{
 # Close the shutdown dialog and display
 # graphical popup which will ask user's shutdown
 # confirmation. If user clicks OK , we shutdown.
 # If cancel - no action.
 qdbus com.canonical.Unity \
       /com/canonical/Unity/Session \
       com.canonical.Unity.Session.CancelAction

 if zenity --question --title='WARNING!' \
      --text="You have running apps. Shutdown anyway ?" \
      2> /dev/null
 then
      qdbus com.canonical.Unity  \
           /com/canonical/Unity/Session \
           com.canonical.Unity.Session.Shutdown
 fi
}

_get_running_apps()
{
  # Gets list of .desktop files for each
  # running app
  qdbus org.ayatana.bamf \
       /org/ayatana/bamf/matcher \
       org.ayatana.bamf.matcher.RunningApplicationsDesktopFiles

}

_check_any_running()
{
   # Among the running apps there's always one
   # .desktop file, which is compiz.desktop.
   # We want to know if there's anything besides that
   if [ $( _get_running_apps | wc -l ) -gt 1  ];
   then
         _notify_user
   fi
}

_check_specific_running()
{
  # Get list of running apps and see if
  # the .desktop file we got is on the list
  if _get_running_apps | grep -q "$1"
  then
       _notify_user
  fi
}

_select_app()
{
  # xwininfo provides nice interface which allows selecting
  #  a window. The rest is just simple parsing and passing
  # around the XID of the app.
  notify-send 'Select a window you would like to monitor '
  XID=$(xwininfo -int | awk '/xwininfo: Window id/{print $4}')
  APP=$(qdbus org.ayatana.bamf \
       /org/ayatana/bamf/matcher \
       org.ayatana.bamf.matcher.ApplicationForXid  $XID )
  qdbus org.ayatana.bamf \
        "$APP" org.ayatana.bamf.application.DesktopFile
}

_print_usage()
{
 cat <<EOF
 safe_shutdown.sh [-a | -c |-s DESKTOP_FILE | -h  ]

 Options:
 -a Monitor any open applications.
 -c Graphically select an app
 -s specify .desktop file for app on command line
 -h print this text

  Copyright Serg Kolo , 2016
EOF
}

parse_args()
{
 if [ $ARGC -eq 0 ] ; then
   printf "%s: No option specified\n Usage:\n" ${ARGV0##*/}
   _print_usage
   exit 1
 fi

 local OPTIND opt
 while getopts "acs:" opt
 do
   case ${opt} in
      a) FUNCTION="_check_any_running"
        break
        ;;
      c)
        DESK_FILE=$(_select_app  )
        FUNCTION=" _check_specific_running $DESK_FILE   "
        break
        ;;

      s) DESK_FILE=${OPTARG}
         FUNCTION=" _check_specific_running $DESK_FILE   "
         break
        ;;
      h) _print_usage
        exit 0
        ;;
     \?)
      echo "Invalid option: -$OPTARG" >&2
      exit 1
      ;;
    esac
  done
  shift $((OPTIND-1))

}

main()
{
 # Basic idea is to let user chose what to do
 # then monitor dbus for appropriate signal
 # Once the RebootRequested signal is received
 # then perform appropriate checks ( for a specific
 # or all apps ).
 local FUNCTION
 parse_args  "$@"
 dbus-monitor --profile \
      "interface='com.canonical.Unity.Session',type=signal" |
 while read -r line;
 do
  case "$line" in
       *RebootRequested*)  $FUNCTION ;;
  esac
 done
}

main "$@"


Terminal: List all directories for which a user or group has write permission

Working out what a user can do is hard if you're not that user. You can test various things (is owner, same group, etc) but ACL might apply, there might be no permissions in the mount, who knows. It's hard.

If you can turn into that user, you can test -w <path> to see if they can write. This isn't as fast as just looking at the inode but it's possible with sudo.

sudo -u oli test -w <path> && echo "HOORAY"

We can then squirl that onto the back-end of find. Instead of just using -exec to change to the oli user over and over and over again (see past revisions), we pipe everything into a xargs instance running as oli. This is much faster.

sudo find / -type d -print0 | sudo -u oli xargs -0 -I{} sh -c 'test -w "$0" && echo "$0"' {}

A somewhat optimised (but visually flabbier) version of this involves minimising the amount of subshelling the xargs performs by piping a stream of paths into a low number of bash subshells. This is undoubtedly faster for big searches.

sudo find / -type d -print0 | sudo -u oli xargs -0 sh -c 'for p; do [ -w "$p" ] && echo "$p"; done' -


Ubuntu 17.10 - portrait monitor showing extra arrow

This seems like a yet-another-issue-with-Wayland.

As a workaround you may switch back to Xorg from the default Wayland session following this Q&A: How do you switch from Wayland back to Xorg in Ubuntu 17.10?


Python interactive interpreter: initial tab is 4, subsequent tabs are 8 spaces

That's normal. Because tab will align the cursor on the next multiple of 8 column and due to the 4 chars of the prompt, tab will just move the cursor 4 to the left to have it aligned on the 8th column. So that's not the python interpreter, but the terminal that have this behavior. You can see by using a space before hitting tab, it will still be aligned, even if python will not like it ( cause python internally will count tab as 8 chars, no matter the position or what is before or after ).

AFAIK, this is a purely cosmetic issue, but if it bother you, I would suggest to use ipython, which is a much improved python command line.


Broadcom adapter continuously freezes then works

I suggest that you do:

sudo -i
echo "blacklist b43" >>  /etc/modprobe.d/blacklist.conf
echo "blacklist ssb" >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and report your results.


Problem with wikit, a command line tool to search wikipedia on linux

I know this is going to seem confusing, but wikit isn't actually Ubuntu software.  To install it you had to run npm install wikit -g which downloads and installs software from npmjs.  That's not to say there aren't npmjs softwares in Ubuntu, but Ubuntu-supported npm softwares are installable via apt or snap. (The same problem occurs with other out-of-tree respositories like perl's CPAN)

As such, Ubuntu doesn't have control over how it's packaged, so in your particular case, it appears that a couple of npm modules in the package.json file are out-of-date.

I'd recommend reporting this issue to https://github.com/KorySchneider/wikit/issues as it won't only be happening on Ubuntu.

The interim solution would be to download the application source, and change the "module" reference in package.json to the correct versions and then npm install from source.


What are the pros and cons of CPU frequency control on a laptop?

The trade-off is performance vs. both battery life and heat. As the frequency increases the processor produces more heat, and the processor uses more power the faster it runs.

In a perfect world, heat itself wouldn't be a problem as your systems fans would speed up to dissipate more heat--but this would consume even more power from your battery. Some systems aren't effective in conducting heat away from the systems circuits. In that case lowering the frequency can help keep the laptop cooler.

Poorly controlled heat is a problem in two other ways, it can make the laptop uncomfortable to hold, but it can also reduce the lifetime of the laptops integrated circuits. Some systems will shutdown when they get really hot, but that doesn't mean the integrated circuits lifetimes haven't been shortened already. The operating range of the integrated circuits in a laptop vary and are set by the manufacturer.

ACPI (Advance Configuration and Power Interface) is the technology controlling heat and power in modern computers.

The acpi command from the acpi package can help control and monitor power and temperature in a laptop. acpi -t for example will give you its current temperature in Celsius.

The indicator-cpufreq package provides an indicator for the top bar on your system that will tell you how fast your processor is running and help control it depending upon whether you want performance or battery life at any particular time.

Obviously overclocking your computer will require even more power for both the processor integrated circuit and the cooling fans.


How to automatically hide error messages in GNOME Shell's notifications?

So far as I know, you can't. The reason the errors don't disappear is because their urgency is probably set to CRITICAL, and gnome-shell's behavior is to always expand those, and only close on click. You may be able to change the urgency of the error notifications in you app. Check it's documentation.


Installing Eclipse Oxygen On Ubuntu 16.04

Review eclipse.ini. Remove duplicate entries and remove --add-modules lines. After such cleanup eclipse started for me on openjdk9. Not sure if I will face some other issues, will report back.

EDIT: After checking java -help it turns out that there is an option -addmods which was in an early access of Java 9. Now it's called --add-modules. Seems like the jdk in ubuntu repo is quite old (explains why it's called 9-internal)

EDIT2: As suspected: https://packages.ubuntu.com/search?keywords=openjdk-9-jdk

xenial: 9~b114-0ubuntu1: amd64 i386
zesty: 9~b161-1: amd64 arm64 armhf i386 ppc64el s390x
artful: 9~b181-4: amd64 arm64 armhf i386 ppc64el s390x
bionic: 9.0.1+11-1: amd64 arm64 armhf i386 ppc64el s390x


Browser tab and bookmark bar font is too small

For Ubuntu. Edit file
sudo nano /usr/share/applications/opera.desktop

and followed your code replacements...
Find the line
Exec=opera %U

And replace with
Exec=opera --force-device-scale-factor=1 %U

Restart opera.
The solution is from:
Font size of bookmarks and tabs got small for chrome in ubuntu 16.04


I fixed it by enabling the "updates" repository


oracle xe prompts removal of kubuntu desktop 12.04

I found an workaround:

Instead of trying to install bc:i386, which removes bc and other essential packages, I did the following:

sudo dpkg -i --force-all oracle-xe-universal_10.2.0.1-1.1_i386.deb

Pay attention to the --force-all argument. This makes dpkg ignore, besides the different arch, the pseudo-missing bc:i386 dependency, which doesn't cause any harm since the normal (x86_64) bc dependency is enough.

Don't forget to follow all the other steps, as usual. A good guide is here: http://justalittlebrain.wordpress.com/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/

So far, so good!


Kubuntu 20.04 unstable display using AMD integrated Vega Graphics with kernel 5.4

It seems that it is not the kernel itself but the boot parameters passed to that kernel.
So the solution that worked for me was:

Edit /etc/default/grub and add nomodeset) to the end of the GRUB_CMDLINE_LINUX_DEFAULT="..." line, as shown by this diff:
--- a/etc/default/grub
+++ b/etc/default/grub
@@ -7,7 +7,7 @@
 GRUB_TIMEOUT_STYLE=hidden
 GRUB_TIMEOUT=10
 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
 GRUB_CMDLINE_LINUX=""

 # Uncomment to enable BadRAM filtering, modify to suit your needs

Generate the grub configuration for its templates:
 sudo update-grub

Reboot.

Update:
After adding nomodeset I noticed that:

I am unable to use multiple monitors as noted by this Linux mint forum thread and this Linux-questions thread
Some desktop effects are not working.

However the solution suggested below by Andrew Richards did not work for me.


likewise-open with WIN AD or ldap-auth-client with openldap server

Both can be use as per your scenario.

likewise-open Can be use when you have centralised authentication with AD which server is on Windows.

And ldap-auth-client is usable with Ldap.

So you can use it as per your scenario.


How to download files from local pc to remote pc?

Download and upload refer to the direction the data is travelling in. That means, the download speed refers to the speed for data that is transferred towards your computer. The upload speed refers to the speed for data that is transferred from your computer to some place else.

You can image that as a large road with many lanes that leads to your house (the download capacity) and a small road with only one lane that leads away from your house. Both of these roads are one-way only. You can't use the large road in the inverse direction, and you can't use the small road in the inverse direction.

It's the same with your internet connection: The download capacity can only be used to transfer data to your computer, and the upload capacity can only be used to transfer data from your computer somewhere else.


If you simply wish for the window to stay up until you can see what kind of output you have there, you can use the read -command.

read -rsp $'Press enter to continue...\n'

But I sense there is a bigger problem there: it is rarely a good idea to use "sudo" in bash scripts. Instead you should run the script with a sudo command instead.

And your script, it doesn't simply update Libre Office, it does a complete system updgrade for all packages.

If you wish to update Libre Office only, then you need to specify that:

sudo apt-get install --only-upgrade libreoffice

If your boss wishes the Libre Office installations stay up to date, you might wish to check how to do this with cron; if can help you do it at each reboot, every X hours (or minutes), etc.

And since there is a crontab for "root"(ie. run: "sudo crontab -e"), you'd have no "sudo problems" either if you handle it that way.


How to print values in a text file to columnated file using shell script

With paste:

paste - - - <file.txt

this will output the newline separated file content as columns, and three tab separated columns per line.

Adding the header:

echo Filename Status Timestamp; paste - - - <file.txt

To columnize the output, take help from column:

{ echo Filename Status Timestamp; paste - - - <file.txt ;} | column -t

Example:

% cat file.txt
abc.txt
errorstatus1
Fri Nov 11 02:00:09 2016
def.txt
errorstatus2.txt
Sat Nov 12 03:00:09 2016

% { echo Filename Status Timestamp; paste - - - <file.txt ;} | column -t
Filename  Status            Timestamp
abc.txt   errorstatus1      Fri        Nov  11  02:00:09  2016
def.txt   errorstatus2.txt  Sat        Nov  12  03:00:09  2016


Following the suggestion of @gunnar-hjalmarsson, I removed LC_ALL=en_US.UTF-8 from the files: /etc/default/locale and /etc/environment. I also removed the file: ~/.pam_environment. Now everything works as expected.

If the above did not work for you, you may want to try a temporary solution in this link (again suggested by @gunnar-hjalmarsson)

After matlab launches, run

setenv('LC_ALL','C')

and then it is possible to open .m files.


1.format /dev/sdb

fdisk /dev/sdb
enter: n
enter: p ( primary )
enter: default -> press enter
enter: default-> press enter

enter:w ( write ) to save the changes

if you type fdisk -l : you should see a /dev/sdb1

Now make a ext4 filesystem on it with: mkfs.ext4 /dev/sdb1
Create the domain you wish to mount it like /db  with mkdir /db
Mount it: mount /dev/sbd1 /db
To mount after reboot you need to add this in the fstab similar to /
You need to get the UID of the partition with: blkid
These UID you need to add in the new line you have added in /etc/fstab.

For the second disk you do it in the same way


How to install into existing LVM logical volumes

Easiest way, IMO, is to use the alternate CD, the desktop or live CD does not support LVM.

The alternate CD does not run "live", but the installer is easy enough if you are migrating from debian.

Edit - small clarification, you can install lvm when running the desktop CD, and you can then mount your LVM, but I do not think the installer, ubiquity, supports LVM.

You could use the live CD , install LVM, then install ubuntu manually into a chroot, but probably (for most) more hassle then the alternate CD.


How to convert flv to mp3 on ubuntu 14 without ffmpeg

You can use Sound Converter.

  Sound Converter is a gnome sound conversion available for Linux. You
  can convert music files into another format (OOG, MP3 and Flac). The
  tool is very simple, just add the files, set the destination directory
  and convert the files.SC

To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install soundconverter


This may sound trivial but it solved my problem, try a different USB cable, it appears that there are USB cables for charging only not data and charging. I tried a cheapie cable I had picked up on sale and everything worked.


Remove all file except multiple file by command

You can use extglob to exclude pattern:

shopt -s extglob
rm field_!($(date +%Y%m%d)*).php

You might want to turn off extglob afterwards using shopt -u extglob.

See also


Ubuntu 13.10, Perl complaining about setting locale

A couple of notes:

System wide locale settings are stored in /etc/default/locale.
It makes no sense to set all of LC_ALL, LC_CTYPE and LANG.

A cleaner solution is to let /etc/default/locale contain only

LANG=en_US.UTF-8

and drop those entries in /etc/bash.bashrc.


GNOME-Shell Password RePrompt Twice in a Row, Regardless

NEVER use the same username/email - password combination for more than one service!

I advise you to change all of them immediately. Not only because it is unsafe in general, but because weird popup password requests look somehow suspicious to me.
It could be malware prompting you for your credentials to hack your accounts. It does not have to be, but it can be. Find out where it comes from and why!

And in general:
If you don't have a good reason for entering a password anywhere (because you yourself manually requested a service that needs it), don't enter it!


How do I prevent my display from turning off when screen is locked?

Quite by accident tonight I discovered a "hack". Enter an invalid password at the lock screen and it will stay there and not fade to black.

I'll be using this technique myself from now on until a better answer comes along. The duplicate candidates don't work for me under Ubuntu 16.04 and like yourself it irritates me the screen turns off.

Feb 20 2018 Update - Disable Dimming CLI method

To prevent screen from turning off you need two settings, one under battery power the other when plugged into wall outlet (A/C).

For battery timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <time_in_seconds>

For AC timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <time_in_seconds>

So for both Battery and A/C set the time to 0 (never).

For Login screen:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Disable dimming screen when idle:

In Unix & Linux someone complained when on battery screen dims every 20 seconds and wants to turn that feature off:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false


Looks like the log-in account bharath have some permission issue. Change the owner as bharath by using

sudo chown -R bharath:bharath/home/bharath`

and try to open Firefox.


Bind Not Starting on Ubuntu 14.04 with Plesk 12.5

The top chroot-directory /var/named/run-root didn't have proper chmod, it was 744 instead of 755 so the user bind wasn't able to access subfolders.

Already solved on another board, he probably forgot to mark this as solved here.


Can I block log messages from specific devices or drivers?

I have half an answer: I don't know how to block specific drivers, but rsyslog has a mechanism for filtering log messages on content:

Edit the rsyslog configuration file:

sudo nano /etc/rsyslog.d/50-default.conf

Add a text filter at the top of the file, and redirect the messages matching the filter to a separate log:

:msg, contains, "NVRM: os_raise_smp_barrier" -/var/log/junk.log
& ~

Save the file and restart rsyslog:

sudo service rsyslog restart

Check that the restart worked:

$ tail /var/log/syslog
...
Mar 14 10:38:35 desktop kernel: Kernel logging (proc) stopped.
Mar 14 10:38:35 desktop kernel: imklog 4.2.0, log source = /proc/kmsg started.
Mar 14 10:38:35 desktop rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="18494" x-info="http://www.rsyslog.com"] (re)start
Mar 14 10:38:35 desktop rsyslogd: rsyslogd's groupid changed to 103
Mar 14 10:38:35 desktop rsyslogd: rsyslogd's userid changed to 101

And /var/log should now contain a new log file junk.log containing the filtered messages.

So far so good, the only drawback is that it doesn't work for dmesg.


I assume you are trying to SSH from the Windows machine into the VPS.  You would copy the public key into the home directory of the user you plan on using for your deployment, which you say is "my_name".  Paste the public key from your Windows SSH client into the below directory:

/home/my_name/.ssh/authorized_keys

Make sure you paste it exactly how it looks.  Watch for wordwrapping.  Make sure you grab the "pub" file.

Hmm, you mention deploying with 'git'.  Sounds like you might also need to generate a key, or copy your existing key-pair into your '.ssh' directory.  This will allow you to pull/push your git code.

If you want to generate a new keypair for the VPS, run ssh-keygen, and then grab the pub file from the .ssh directory and paste it into your git provider (github?).


20 old Dell Latitudes donated to our school

I'm running Ubuntu 14.04.3 LTS on a Dell Latitude D630 with 2GB (same configuration you have). I am happy with the performance. I also run Ubuntu on both of my desktops, and find the laptop performance almost as good..

I recommend the LTS (Long Term Support) Ubuntu releases, so you won't have upgrade them as often.


You downloaded the source correctly.

make kernelversion will never give you the correct Ubuntu kernel version. It outputs the mainline version.

It may be done by some command, but the easiest way is to look into debian.master/changelog.

A better way is to get sources from git. Run

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-xenial.git
cd ubuntu-xenial
git checkout 6cac304f7f239ac

and you will get your 4.10.0-27 kernel source.


gsettings: no change after configuring settings

Running gsettings only changes the settings for the user who owns the X session that $DISPLAY points to. If you use sudo that's your current user. You can see that by the file $HOME/.config/dconf/user being modified.

To change the default settings for all users create the file /usr/share/glib-2.0/schemas/org.gnome.system.proxy.gschema.override with the content

[org.gnome.system.proxy]
mode="manual"

Then run

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/


external USB HDs for data storage on ZFS with Ubuntu 20.04

Yes, it is possible to do this, but there are some things one must be aware of:

Use the drive device identifiers, such as  /dev/disk/by-id, /dev/disk/by-partlabel or /dev/disk/by-partuuid rather than the /dev/sd* name because USB drives may change their /dev/sd* names depending on the enumeration on boot.

Try to spread the USB connections across different USB controllers if possible. as an optimization step.


Upgraded from 12.04 LTS to 14.04 LTS, Spamassassin Upgrade Issue

have you tried this link: http://krischan.eu/index.php/2014/04/21/spamassassin-bug-gpg-validation-failed/

Looks like they had a similar problem and ended up re-importing the GPG key.

Mike


While Installatiog viber.deb with dpkg stopped with error

Probably no one will read this answer, but i had a very similar issue to this. I solved it by downloading zip file from here

wget http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip

Then run this commands

unzip Viber.zip
cd Viber
~/Viber/Viber.sh

Hopefully this will solve your issue.


Install ubuntu on pendrive and use remaining disk space to store files, instead of persistence file

You can build a flash drive using persistent partitions not limited to the 4GB of FAT32 files.

Partition an 8GB or larger drive first half FAT32, second half ext2, label the ext2 partition casper-rw, (you can make a third partition named home-rw if you want a seperate home).

Install to the first partition using usb-creator, (Startup Disk Creator), or UNetbootin, allowing minimum persistence space. when done delete the casper-rw file located in root.

To make a folder easily accessable from other computers, create a folder in filesystem/cdrom. You will see this folder in the flash drive root when plugged into a running Linux or Windows computer.

You can not access the casper-rw file where /home/ubuntu/Desktop is located from a Windows machine, (easily).


Does ubuntu server (18.04) attempts any automatic update by default?

Yes, Ubuntu Server will attempt to upgrade by default.

There are two elements you must disable.

1) Apt will attempt to update it's package database daily using apt-daily.timer (provided by the apt package)

2) Apt will attempt to upgrade new packages in the database using apt-daily-upgrade.timer (provided by the unattended-upgrades package)

Simply disable both:

sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily-upgrade.timer

Note to future readers: This is a good idea for some closed networks. This is a Very Bad Idea for any machine connected, directly or indirectly, to the internet. Those upgrades include security patches to protect your system from newly-reported vulnerabilities.