Boot hangs in a live USB over a Toshiba Qosimo X75

Try fixing the video problem before switching modes.
For UEFI machines (with a black screen grub (grub-efi)  without any
function key options, like the older grub-pc, edit the grub menu and add
the below options on the "linux" line, then boot with F10 or ctrl-X.

Options for Video problems:

nomodeset
acpi=0
acpi_osi=linux
acpi_backlight=vendor
noalpic
i915.i915_enable_rc6=1
video=1280x1024-24@60
video=VGA-1:1280x1024-24@60

To allow Nvidia hybrid machines to boot.

nouveau.blacklist=1


Set Filtered TCP Ports via iptables For Linux Device

Try with this:

_safeNetwork="192.168.0.0/24"

iptables -A INPUT -p tcp -s $_safeNetwork --dport 8888 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 8888 -m state --state ESTABLISHED -j ACCEPT

This way it will filter the connections to your machines only from your "safe network" and drop the rest.


Is it possible to have 32 bit libraries installed on a 64 bit system?

For some libraries, it's possible to have both the 32-bit and 64-bit libraries installed on a 64-bit system. This is available through the ia32-libs package on Ubuntu 10.04 and before. According to the filelist of ia32-libs, there is no libfuse.so.2 file included. That means that you cannot have both architectures installed at a time.

Since Ubuntu 11.10 Oneiric, it's possible for packages to allow simultaneous installation for different architectures which is called "Multi-Arch". Unfortunately, if I may believe the filelist of libfuse2 on Oneiric, this package has not been transitioned yet. That can be determined from the package dependencies: if a package depends on multiarch-support (like libdrm2), it has support for multi-arch support. However, this is not a guarantee that the package can be installed for multiple architectures simultaneously.

To query your local cache for the multi-arch capabilities of a package, say libc6, run:

apt-cache show libc6 | grep ^Multi-Arch:

For this command, the output is Multi-Arch: same. That means that both the 32-bit and 64-bit versions of a package can be installed at a time. If there is no output, the package is not ready for multi-arch support. Other possible values are foreign (not co-installable, but it can be used to satisfy the dependencies of other architectures) and allowed (iirc, only one package is allowed to be installed at a time, but the package can be used to satisfy dependencies of other packages)

You should be able to install 32-bit packages on a 64-bit system with:

sudo apt-get install packagename:i386

Building 32-bit libfuse for 64-bit machines

Since the 32-bit fuse library is not supplied with ia32-libs, you've no other choice than building it yourself.

Install the build dependencies for fuse and get the source code:

sudo apt-get install ia32-libs libc6-i386
sudo apt-get build-dep fuse
apt-get source fuse

Configure the source tree and build fuse (adjust the directory name if needed):

cd fuse-2.8.4
CFLAGS=-m32 ./configure --host=i386-linux-gnu
make -j 50

Install the 32-bit fuse library (adjust the version accordingly):

sudo ln -s libfuse.so.2.8.4 /usr/local/lib/libfuse.so.2
sudo install -m644 lib/.libs/libfuse.so.2.8.4 /usr/local/lib/

Update the linker cache:

sudo ldconfig

(optional) Remove the source files:

cd ..
rm -r fuse-2.8.4


What advantages does markdown have over asciidoc?

Markdown has some critical mass, and the grammar is smaller than that of Asciidoc.

Markdown does have the drawback that if you want something more complicated you're out of luck, or into implementation-specific syntax that may not fit well whereas Asciidoc can scale up.

There is a g+ post by Dan Allen comparing them and prefering Asciidoc.


Saving JPEG from GIMP - JPEG not recognized by other programs

The image that you are using worked rendered OK on a demo webpage that I created to test it, so I don't think that there is anything wrong with your image. Maybe there is a size limitation on image files on your website. The image that you are uploading to a website is a 4.8 MB .jpg image that is possibly too large for the website that you are uploading it to. Try scaling the image down to reduce its size to something more manageable for the web, not more than 2.0 MB.

How to resize an image with HTML is for users who want to keep an image at its original file size (in KB or MB) and just resize the display size of the image on a webpage.

I have also found that making any minuscule change to the image in a different application sometimes solves this type of problem.

Open the .jpg file in Image Viewer. Image Viewer is the default application for opening images in Ubuntu.
Select Edit -> Flip Horizontal and flip the image horizontally.
Close the image and when a dialog box will pops up asking if you want to save the changes that you have made to the image, click the Save button.

Repeat steps 1-3 again to flip the image horizontally again so that it looks the same as it was originally.


Looking for a package for a easy WMI installation process

Here is how to compile wmi-client manually for Ubuntu 14.


It looks like you need to replace the battery for your CMOS BIOS on your motherboard.


setup samba share on 10.10 and access via windows

Looks like I may have solved my problem:

my smb.conf now has these changes in the following sections:

security = share

create mask = 0757

[itc_data_feed]
  comment = ITC_DATA_FEED
  path = /var/itc_data_feed
  writable = yes
  browsable = yes
  guest ok = yes
  create mask = 0757

these settings allow me to connect directly to the /var/itc_data_feed share without needing to authenticate and gives the user read/write permissions in the directory.


I think it's in this directory:

~/.java/deployment/log

source


Creating a booting stick with Ubuntu 18.04.4 for removing Windows 7 and Windows 10

First of all - not all USB sticks are bootable. I never really checked why, but I have two from the same vendor where only one of them is bootable and second is not. So please try with other sticks, too to make sure you're not trying with a non-bootable one.

Second: make sure to choose options correctly. Rufus website has a pretty good image on this:
https://rufus.ie/pics/rufus_en.png
make sure ALL options are like this image, download 18.04 ISO and provide it to rufus.

this should work, just tried on my windows 10 laptop, works well and boots (yay) :)


/home on a separated partition in Ubuntu 18.04?

If you do a clean install of Ubuntu without managing the partitions yourself, then /home directory is the part of your "/ directory" i.e root directory. Hence they both use the same disk space.

If you want to install your /home directory onto different partition then while installing the Ubuntu you should manage the partitions yourself.

There is an option where the Installer asks the user to Install Ubuntu, you should select Something Else option there and manage the partitions.

You should see your hard drive as /dev/sda (if you got only 1 hard drive in your system else there will be multiple drives like /dev/sd# '#' could be any letter corresponding to no. of drives you have)

You should make new partitions from free space and mount them to root and home directory.

Make a partition for your OS (where your root directory will be, should be at least 5 GB) and then a new partition for your home directory (this will be place for your personal files, give any size you feel like).

To mount the respective partition to the directories type the following in mount option :
/ for root directory
/home for home directory

Then continue to install, you now have separate partitions for your root and home directory.

P.S.
You can also make a partition for swap space, its better to make one.
You can learn more about swap space from here


Manually setting Xorg options from command-line?

xinput is your best bet. I cannot confirm this as working as I do not have similar hardware, but try running:

xinput --set-prop --type=int --format=8 "Logitech USB Trackball" "VertScrollDelta" 4

The --format=8 specifies an 8-bit integer value; using 16 or 32 may work if 8 does not.

You can also use the following to try and troubleshoot this on your own:

xinput --list will show you a list of input devices that xinput can work with

xinput --list-props "Logitech USB Trackball" will show you the current properties for your device


Need help configuring 16.04 Xenial to auth via LDAP and PAM

I switched from LDAP to SSD.

Now I have Xubuntu clients authenticating vs Active Directory without problems (can be the same with Ubuntu Server?)

I have used this guide SSSD and Active Directory


Error message on booting up Ubuntu 14.04.2

Are you able to log-in? If yes, try adding blacklist mei_me line to /etc/modprobe.d/blacklist.conf.

If this doesn't work , add the following line to modprobe.conf.local:

install mei /bin/true and restart.


alternative one

Did you remember to give the rc0.d/K99myscript correct prefix? K99 and
sudo chmod +x K99myscript?

Note: The scripts in the directory are executed in alphabetical order. Runlevel 0 corresponds to shutdown, and 6 to reboot.

rc0.d/ is for shutdown or Halt.
rc6.d/ is for restart.

Quick and dirty explanation of system V:

The rcX.d is the System V's init scripts links. The scripts are all symbolic links whose targets are located in /etc/init.d/ The links are updated with update-rc.d.

The K stands for Kill, it just indicates that the linked script is stopping a service. On the other hand you can also use S, that is shorthand for Start, to indicate that you are running a single command or starting a service.

The [SK]NNmyscript number indicates in which order the linked scripts in the rcX.d are executed.

alternative two

/etc/init/yourscript.conf

# This task do ---
# on shutdown.

description     "runs my script eg."

start on runlevel [06]

task

script
    exec *command*
end script

For more info on alternative two check out this cookbook eg.


Boot fails after 16.04 LTS to 18.04 Bionic Beaver upgrade in Virtualbox on Windows 7 host

After just waiting a while I was then offered an upgrade to 18.04.1 LTS, which does boot after upgrade.  (It still doesn't fully work, but that's a separate thing.)


Can I create two Recoll databases, each for different directories?

Expanding answer from @Glutanimate - I will provide example of the solution based on creating different directories with recoll configuration for multiple indexes. Let's assume that we want to have "it books" and "health books" indexed separately.

First create directories for each index:

$ mkdir -p /path/to/the/index/.recoll_it
$ mkdir -p /path/to/the/index/.recoll_health

Then launch recoll with option '-c' to indicate directory with configuration you would like to be loaded when recoll GUI will be launched, e.g.:

$ recoll -c /path/to/the/index/.recoll_it

When recoll GUI is open, go to Preferences menu and select index configuration where you can indicate path to the directory you would like to have indexed with this configuration (in this example directory with collection of it books).
Repeat steps 2 and 3 with the other configuration you might want to have.

Every time you want to use recoll with specific index you need to call recoll with option -c to indicate which index recoll have to load (as in step 2).


Remotely access mysql db on vm from windows as host

You should allow remote access to mysql from command line inside your virtual machine (assuming you don't have any gui tools to connect to mysql like phpmyadmin and mysql-workbench)

as root, open your /etc/mysql/my.cnf with your favorite editor
look for the [mysqld] section, and in there for the bind-address keyword. This usually is set to 127.0.0.1 -- change that to match your "normal" IP-address
save the file, and reload the service (e.g. using service mysql restart)

Remember you must enable your remote users to access their database(s) from remote, by setting the appropriate GRANTs -- e.g.

GRANT ALL ON mydb.* TO remoteuser@'%' IDENTIFIED BY 'SomePASSWORD';

Note the @'%', which means "from any host".


Virtual Machine Manager connection failure

Installing libvirtd and depending packages will automatically put users that are in the sudo group to also be able to use libvirt. It also sets environment variables for the shell commands.
All that won't be active for existing logons, therefore to be able to use everything you need to re-logon (or start a new terminal, ...) after installing the packages.


What's the difference between the snap store and the ubuntu software snap?

Snaps have various channels available, by running snap install snap-store it defaults to the stable channel that isn't the one shipped by default in ubuntu 20.04 store. Running snap switch snap-store --channel edge after installation will switch the snap to the edge channel and give back the ability to install debs and the ubuntu branding.

So to answer the question, they are different channels of the same package, which can be confusing because of how different they are.


How to make IK Multimedia Stealth Plug work on Ubuntu?

Works for me very well.. in Ubuntu 12.04 just "plug and play" after plug in, in sound settings check "Stealthplug no bass boost" and MUST RESTART Machine.

After that is Stealthplug the main system audio card (ALSA) and work fine with Qjack, Qsynth, Qtractor (this chain of startups is a must...) and the Qsynth hosts Soundfonts (.Sf2 files), that are many good quality and free!

After my first tests also in good audio sync with MIDI (must say that I use Stealthplug only as input and output card without any VST or ASIO advantages - have my own hardware based guitar multieffect gear - KORG AX3000G).

At last but not least, Qtractor is so NICE simple, that I could now after years of seeing "complicated" workspaces of innovatives massive DAWs, really see simple windows, that suggest me those "little displays" of my beloved hardware of the 80's and I can now again put importance on "HOW IT SOUNDS" and No "How it looks like".


Use Universal USB Installer to load your iso to the USB stick. It makes USB Bootable of a lof kinds of OSes (include Windows, Linux, and more). I tried to make LiveUSB with a lot of tools, but this tool works perfect.


Problem with audio device es8316 and bluetooth r8723bs (Ubuntu 18.04 installed in Yepo 737s)

See https://ubuntuforums.org/showthread.php?t=2391606 for fixing the sound problem.
The r8723bs driver in the 18.04 staging area doesn't include bluetooth.  There is a working bluetooth driver for the 4.4 LTS kernel series, but not the 4.15 series in 18.04 because of the changes in the kernel timer code.  linuxium offers a respin.sh script to take an ISO and rewrite it with some changes, and offers a 4.12 package for the drivers, (but that's not a LTS kernel series). See http://linuxiumcomau.blogspot.com/2016/06/running-ubuntu-on-intel-compute-stick.html
The Intel Compute Stick uses the same 8723bs as your laptop.
 Maybe dropping back to 16.04, with the 4.4 kernel would be a solution for you.


Ubuntu upstart and issue with dns resolution not ready during reboot

You might try starting when networking is up and running.

start on started networking

However your job is depending on external condition (DNS resolution) therefore loop you created might be inevitable.

You should also re-check your monit configuration: The upstart script provided on Monit web site looks straight forward. No mention of problems you are facing.

Case you haven't done it already check the content of /var/log/upstart/monit.log and debug your script. Knowing exactly why your script is failing on reboot could be helpful.


How do I use cut to make tab the delimiter?

Use this:

egrep -e "^[0-9]" *.txt | cut -d ":" --output-delimiter=$'\t' -f 1- > test.txt

should work in Bash.


15 computers + 1 "master" computer = major headache

Well, you have a few different options. Probably the easiest 2 are:

Run Apache on the server and publish the stuff to web pages
Let the clients connect to the server over ssh and use Forwarding GUI Programs


How to log in automatically in Xubuntu 15.10?

Mikewhatever's suggestion was right: i created lightdm.conf with username to log in automatically. Here is the code:

gksu mousepad /etc/lightdm/lightdm.conf

Paste following code in mousepad:

[SeatDefaults]
user-session=xubuntu
autologin-user=/usernametologin/

Then save and reboot. Next time xubuntu will go directly to your desktop without greeting screen.


There are a few tools I use when in this situation: df, du, and mount
du is the most useful for hunting down the culprit that filled up your filesystem:
$du -h --max-depth=1

However at the filesystem root, /, you won't have permission to access all of the directories to get a read on file sizes, so you'll need sudo to get full privileges. I just did this on our server at / and our raid is kinda big, so I bailed on that.
Examples follow:
15:08 chris@server /$ sudo du -h --max-depth=1
8.0K    ./mnt
16K     ./build
4.1G    ./opt
4.0K    ./backup
12K     ./media
13M     ./lib32
38M     ./root
300K    ./dev
6.0M    ./sbin
2.4G    ./lib
2.9G    ./var
4.0K    ./selinux
50M     ./home
2.3G    ./usr
0       ./proc
7.9M    ./bin
5.9M    ./tmp
200K    ./srv
4.0K    ./run
0       ./sys
4.0K    ./cdrom

I hit ctrl+c because I'm done waiting on /raid... So let's see what df says:
15:14 chris@server /$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb7              92G  9.0G   79G  11% /
none                  1.9G  300K  1.9G   1% /dev
none                  1.9G     0  1.9G   0% /dev/shm
none                  1.9G  7.3M  1.9G   1% /var/run
none                  1.9G     0  1.9G   0% /var/lock
none                  1.9G     0  1.9G   0% /lib/init/rw
/dev/sda1             3.6T  2.3T  1.2T  66% /raid
/dev/sdb9             276M   88M  175M  34% /boot
/dev/sdb8              88G  3.1G   81G   4% /var

Oh, wow, the raid is two-thirds full, maybe it's worth the wait to figure it out?
15:15 chris@server /raid$ !du
du -h --max-depth=1
852M    ./www
20K     ./investedin
9.8M    ./ups
99M     ./dealers
3.0G    ./photoshoot
69M     ./catalog_tech
86G     ./misc
4.9G    ./marketing
16G     ./pics
193G    ./Video
37G     ./mechanical_design
14M     ./tmp
16K     ./lost+found
93G     ./programs
16K     ./.Trash-1000
17G     ./Products
1.3G    ./vendors
1.1G    ./docs
128K    ./.Trash-1001
20M     ./customers
2.9M    ./po_invoices
18M     ./_SCANS

Well, it's still hanging out churning, so I'll be patient and let it go in the background. To analyze the above, I look through the sizes of the directories for who the disk hog is. Notice ./programs is 93G. If that's unexpected, you start drilling down that tree.
I prefer du -h --max-depth=1 because with any more depth, you get a ton of output and in this case, you might just need that one directory where a log has gone crazy (like on a website?)
Edited to add:
And mount isn't always applicable for your exact case, however, I have used Linux and the above techniques to rescue a Windows install with no free space. mount can help you see what hard drives are mounted where. Also notice how df also hints at the output from mount.
15:25 chris@server ~$ mount
/dev/sdb7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /raid type ext4 (rw)
/dev/sdb9 on /boot type ext4 (rw)
/dev/sdb8 on /var type ext4 (rw)

What the above tells us is that the first hard drive's first partition (a hardware RAID 5) is on /raid and the actual "hard drive" in the computer is sdb. With / on sdb7, that reminds me this is the 2nd or 3rd OS I've had on this disk on this server. I put /var on a separate partition for when logs go crazy.


I want to install closure compiler on Ubuntu but don't know how to include new packages in Ubuntu

Closure is not available in Ubuntu 12.04. You need to upgrade or install Ubuntu 14.04. Closure was available in Ubuntu 13.10 (saucy) but 13.10 is not LTS and will soon be completely unsupported.


Recovering data from previous Ubuntu install

Your data is stored in your home directory at /home/username


How to login with new user and fix error : ": No such file or directory"?

Usually on Linux there is only one user root, and on Ubuntu it is deactivated. Instead it is a better idea to add all users that should have administrative privilieges to the group sudo by executing

adduser username sudo

as root. That allows them to execute commands as root by typing

sudo command

and get a root shell by

sudo -i

On top op that, you don't have to enable root login for ssh that way.

The home directory probably wasn't created because you added a user with an id (0) that already existed. Avoid setting the userid and groupid manually.

Step-by-Step how-to create an admin user:

sudo adduser username
sudo adduser username sudo


I have many ideas. Not shure if one will work:

This add the file he is looking for:

sudo touch /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules

This one helps me often when i have such problems:

sudo dpkg --configure -a

will remove this package from your computer (but i assume it will not work without one of them above):

sudo apt remove oem-workaround-bluetooth-status


How to share/access partitions from ubuntu VMware?

Open VMWare, and right click on the VM, and click on settings

Then click on options --> Shared folders

Then click on Always enable --> Add

Then Browse to the folder of your choice, click Next, and follow the on screen instructions.


How to access files/directories with spaces in the name?

To access a directory having space in between the name use \<space> to access it. You can also use Tab button to auto completion of name.

For example :

guru@guru-Aspire-5738:~$ cd /media/Data/My\ Data/
guru@guru-Aspire-5738:/media/Data/My Data$.


Unable to find expected entry 'main/source/Sources' in Release file

Try this way :

Alt + F2
enter software-properties-gtk here
in Software & Updates go to Other Software tab
find dl.winehq.org here
uncheck mark near https://dl.winehq.org/wine-builds/ubuntu xenial main (Source Code) (or similar).
Then reload package lists.


Unable to find cuDNN sample files to verify installation

Following the instructions from the link that you posted:

do the instruction in 2.2 but also download the "cuDNN vX.0 Code Samples and User Guide (Deb)"
do the instruction in 2.3.2 step 4.

sudo dpkg -i libcudnnX-doc_X.0.3.11-1+cuda9.0_amd64.deb


Can't use npm installed packages from command line

Try to install like this, then you don't need the sym link. If I were you I'd delete it, because you might not get the updates automatically and always have to "relink" it.

Try it like this:

aptitude install nodejs
apt-get install npm
aptitude install nodejs-legacy

Then try to install npm packages

npm install -g bunyan
npm install -g forever


how to enable dual booting after install ubuntu in Windows Machine?

When you're into Ubuntu, open up a Terminal window (CTRL + ALT + T) and run sudo update-grub. This should update your GRUB boot menu and detect partitions of other OSes.
If you want to edit the GRUB boot menu config, you can do so by opening Terminal:
sudo nano /etc/default/grub
and to apply your changes run sudo update-grub.
Restart your PC and you should see the GRUB menu.


Should I install these packages for python3?

For learning purposes, you need nothing more than python and a plain text editor like gedit. Indeed python (2) and python3 are pre-installed on a modern Ubuntu version.
Additional libraries, I would only install if you have a specific reason for it. You will find out if you get import errors for example.
Many of the things you mention, I do not have on my system.
Idle, the python IDE
For automatic indentation, easy editing and test- running your code, I would advice to install both idle and idle3 though (python IDE)


Dropbox says version 2.10 is too old. Why?

My version is currently at 42.2.114. I installed mine following instructions at https://www.dropbox.com/install-linux in the section titled "Dropbox Headless Install via command line".

There are just two commands that need to be run. I have a 64-bit system and so I used:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

and, after moving to ~/.dropbox-dist

dropboxd

Dropbox installed this way updates automatically and starts, by default, automatically.


Bumblebee Project: Bumblebee aims to provide support for NVIDIA Optimus laptops for GNU/Linux distribution

Check the wiki for a step by step to installation

https://wiki.ubuntu.com/Bumblebee


Difference between Additional Drivers (Nvidia)

I recommend first activating the Proposed, Restricted, Multiverse, Universe and all other repositories. It should look something like this (Open software sources first to activate them. Them do a sudo apt-get update):

After you update and reboot (If an update asks you to) you should see the Nvidia drivers like this:

And that's when I come in ^^ to explain the 5 types of options:

There are 3 types of Nvidia versions:

The Open Source Nouveau which runs by default if no other Proprietary driver is installed.
The Proprietary driver (Tested)
The Proprietary driver (Experimental)

Depending if "you feel lucky punk!" you can go with Nouveau which works well in most cases but is not recommended if you want to start testing out Windows Games with Wine or Ubuntu games that use extensive OpenGL.

You then have the Tested Proprietary drivers (Right now is the 304.xx versions). This will work stable and give you considerable more FPS for your card than Nouveau. The Nvidia update you mention on your question might be the 304.64 which comes with many Linux fixes.

Lastly you have the Experimental Proprietary drivers (Right now the 310.xx versions). This will work good in most cases (Using them right now and they work perfectly). There was another update to the 310.xx series, the 310.14 which brings a considerably higher performance. You should feel the change when playing L4D2 or see it with unity on how fast Dash and other Compiz features react.

UPDATE: The latest drivers are the 313.xx series which have a huge boost in performance compared to the others mentioned here.

Depending on which one you want, you can go with Open Source Nouveau, Proprietary Tested one or the Experimental one. Note only that both Proprietary are more recommended for latest Nvidia cards (Series 6000 and above). Nouveau is more general in that regards.

Another good question would be: But why so many options now?

This is because there is good moves right now between Valve, Canonical and Nvidia (Mainly them if you have followed the trends, news and others Canonical sites) for bringing Games to Linux (The right way). What this means right now is:

Ubuntu will be handling faster Nvidia driver updates. hence we start to see the Experimental versions of Nvidia in the Additional Drivers tab, this were once found only on the X-Swat PPA.
More work being done with Compiz and Unity (Much more than before)
Steam Beta tests that will help find and solve even faster some of the Problems with games and Ubuntu that we face today. This also includes much help from the Steam community and Valve developers (Apart from obvious Canonical developers).
Much more contribution between this 3 companies in regards to offering a better performance, stability and game deployment for Linux, starting with Ubuntu.


using curl command to download file in parts from different interfaces and to run the commands simultaneously from a script

The general way of doing things in parallel is to launch each command asynchronously - to run in the background - by adding an ampersand & at the end of the command line.

Read up on job control in bash manpage and maybe also in the Advanced Bash-Scripting Guide (www.tldp.org)


To mount hard drives on startup, you need to edit the /etc/fstab file. Just open the file in your favourite editor(be sure to use sudo)

  sudo gedit /etc/fstab

and add the appropriate lines for your hard drives

  UUID="UUID here"      /mount/point filesystem-type defaults 0 0

Just put in the UUID, mount point and filesystem type.
See this for more info.


You need to make it executable.  you can use chmod +x filename

or you can right click and select the make executable check box.

Then you can run it by clicking it or even in the terminal with sh filename.sh or just ./filename.sh


What package provides system call man pages on Ubuntu?

The manpages-dev package provides most manpages in section 2 of the manual (documenting system calls), including those for the creat, ioctl and chown system calls.

sudo apt update
sudo apt install manpages-dev

You can usually find the packages that provide manpages by searching the Ubuntu packages database for a file named like creat.2.gz, where (if different) creat is replaced by the name and 2 is replaced by the section number.

Packages providing manpages in some languages other than English also exist and can also usually be found in this way. For example, if you wanted the section 2 manual pages in French, you would install the manpages-fr-dev package.


Ubuntu 16.04 Installation Error - Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Please try following things and let me know if it works or not.

Please make sure that you are installing Ubuntu 16.04.04 version instead of 16.04.01 from either bootable DVD or USB.
If Ubuntu 16.04 is still not working, try to install Ubuntu 14.04. It worked for me in past for same error.


I've helped many a person resolve partitioning issues... but in looking at your gparted screenshot... oh, well... where do I start?!?

Really, truly... I'd backup any data that you have, then wipe the disk and start all over! DON'T make separate partitions for / and /boot and /home and /tmp. You've got a smallish hard disk. Just install Ubuntu by selecting erase entire disk. Really.


Add GPG signature using Windows Subsystem for Linux

Try using gpg --gen-key --interactive or gpg --full-generate-key for a more full feature set (selection of type of key, etc.).

If it didn't prompt you for details, then somehow your gen-key system is using defaults pulled from a file or a configuration set somewhere.  Usually, I always use gpg --full-generate-key to get all the prompts I expect to get (but I'm old-school that way).

(This said, something must be odd in your WSL environment - gpg --gen-key works as expected and prompts for data in my freshly configured WSL + 18.04 LTS environment)


I change the output between a audio jack device and a USB device using the "Audio" Program in Ubuntu. It's the same as clicking on the top right audio icon and choosing th last option (audio settings). There is an input tab, which lists my devices and I can easily change the active one.

Since I'm not sure about your setup, but this may help you or someone with a similar problem. It definitely works for me with a usb device which acts as an own sound card.


How do I upload an updated package to my PPA without having Quickly mess it up?

The only way to do that is to not use quickly submitubuntu to upload, or even invoke quickly in any way after you have made manual changes.
To "build" and upload the "updated" package to your PPA:

Enter your top-level source directory

Type:
 debuild -S -sa

The sources (not binaries!) for your package will be prepared. Enter your GPG passphrase when prompted to sign.

cd .., and you should see a file in the form of:
packagename_revision_source.changes

Upload this to your desired ppa with:
 dput ppa:launchpad-username/ppa-name packagename_revision_source.changes


kubuntu unkillable font management settings tool

I'm running into this as well.  I don't know what causes it, but I usually just kill it with:

sudo kill -9 `pgrep systemsettings`


Cannot open system settings in Ubuntu 19.10

Found the solution from this question:
Settings not opening on Ubuntu 19.10

And it is to reset the last panel using this command:
gsettings set org.gnome.ControlCenter last-panel ''
and installing hidpi-daemon for Devices section in settings
sudo apt install hidpi-daemon


Issue solved. I also had to add biosdevname=0 in grub


Is it possible to install ubuntu on banana pi m2 zero No graphic interface (headless)

Ubuntu does not support this device. Ubuntu also does not support Raspberry Pi 0/1, whose specifications are similar to Banana Pi Zero.
According to http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO, it works with Debian Stretch and Raspbian Stretch. You can use them instead, their user experience would be very similar to Ubuntu, as Ubuntu is also based on Debian.
You can also try the armhf (32 bit ARM) version of Ubuntu server for RPi2, but since this is not an officially supported device, I doubt whether it would work.


you can download and install Zoom by running the following commands in the terminal

wget https://zoom.us/client/latest/zoom_amd64.deb
sudo apt install ./zoom_amd64.deb

If this is also giving you error , then can you share the error statements with me. So that I can help you solve the problem.


Why does the ls command show deleted files?

ls does not cache file names. It really does show you exactly what is currently on the file system. However, as @Ravan hinted, there may be similarly named files in your directory. These are typically runtime caches or lock files created by programs such as Vim and Emacs, but could be pretty much anything. For example, if I do the following in one terminal:

$ touch foo
$ vim foo

Then I'll see the following in another terminal:

$ ls -A
foo  .foo.swp

.foo.swp is a hidden temporary file which will be deleted if Vim exits nicely.

Such files can be safely deleted if they are left around from earlier editing sessions which are no longer open. Just make sure you quote the file names, since they may contain special characters like tilde (~):

$ rm '.foo~'


You can purchase another hard drive that is the exact make and model (even if it is used) and swap the controller board. You have a extremely high chance of retrieving the data since most HDD failures is the controller board.


"Permission denied" error when editing /etc/ld.so.conf

From memory this should do it:

sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"


Make sure you have these tools installed:

sudo apt-get install samba samba-common samba-common-bin libwbclient0 libpam-smbpass python-smbc smbclient nautilus-share libsmbclient gnome-system-tools


How to uninstall a unnecessary installed bluetooth driver (rtbth)?

Install ppa-purge: sudo apt install ppa-purge
Purge the repository and everything installed from it: sudo ppa-purge ppa:blaze/rtbth-dkms


An application is playing music and I cannot find it

Run the command

ps aux | grep pulse

Then get the ID of process running the pulse-audio, then kill it

sudo kill -9 PID

for example:

$ ps aux | grep pulse
maythux  11058  0.0  0.0   9452   944 pts/2    S+   08:45   0:00 grep --color=auto pulse
maythux  11946  0.2  0.0 558100  7992 ?        S<l  May26   2:19 /usr/bin/pulseaudio --start --log-target=syslog

here I can see the 11946 as PID of pulse-audio then i kill it using

sudo kill -9 11946

Or easily just run the command

sudo pkill pulseaudio


How to fix bluetooth mouse that has stopped working latest ubuntu

I installed blueman

"apt-get install blueman"

then removed the device and added it back in blueman manager

"/usr/bin/blueman-manager"

strange that this worked when adding directly using gnome interface didn't but happy that it did :-)


Looking for open-source fashion design software

Blender is very cool -  http://wiki.blender.org/
Manual
Pre-Compiled plugins
Aimed world-wide at media professionals and artists.
Blender can be used to create 3D visualizations, stills as well as broadcast and cinema quality videos, while the incorporation of a real-time 3D engine allows for the creation of 3D interactive content for stand-alone playback.


How to disable "recent files" folder in Nautilus?

The method with editing ~/.config/gtk-3.0/settings.ini doesn't work with Nautilus 3.8.
But there is better and simpler way.
Simply open dconf-editor, navigate to org->gnome->desktop->privacy and uncheck the remember-recent-files key. That takes care of it, once for all!


Gparted Error "Unable to satisfy all the constraints on the partition"

I'm not 100% positive, but I suspect this is your problem:

/dev/sda6      1532825600  1780301823   123738112   83  Linux
/dev/sda7      1780301824  1805438975    12568576   82  Linux swap / Solaris

Most partitioning tools put at least one empty sector between logical partitions and use that space to store the Extended Boot Record (EBR) that describes the following logical partition. In the case of your /dev/sda6 and /dev/sda7, though, there's no gap between those two partition. This is legal, provided the EBR can be tucked away somewhere else. (sfdisk can do this, for instance.) It's possible that libparted (upon which parted, GParted, and several other tools are based) is becoming confused by this. I've not tested how libparted reacts to such disks, though, so I can't be sure that my guess is right.

If this is the problem, then I can think of at least two solutions:

Using any tool that will enable you to do so, delete /dev/sda7. It's swap space, so it doesn't hold any critical data. You can re-create it later, with a gap between it and /dev/sda6. When you re-create your swap partition, you'll probably have to edit /etc/fstab to point to the new swap space.
You've got one free primary partition, so you can use FixParts (part of the gdisk package in Ubuntu) or the EaseUS tool you used initially to convert /dev/sda7 into a primary partition. Primary partitions don't need EBRs, so the problem should then go away. This method has the advantage that you won't need to edit /etc/fstab, but you'll also have no free primary partitions. If you really want your swap to be on a logical partition, you can shrink either partition by 1MiB, which will open up enough of a gap that you'll be able to convert back and have it work.


Freeze after closing lid. Suspend with pm-suspend works fine: Ubuntu 14.04 on Thinkpad T460s

I have the same problem. "sudo pm-suspend" works fine but when closing the lid or selecting "power->suspend" the system freezes at resume. This is the behavior:
Ubuntu login screens appears, mouse can be moved. However, the system is frozen: mouse clicks do not work, keyboard entries do not work, the clock is frozen at the time of suspension. "/var/log/pm-suspend.log" shows all success, no failures/errors.

My system is the following:
Ubuntu 14.04 latest update, Kernel 3.13.0-88-generic, Lenovo Thinkpad T450, Graphics card: Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09) (prog-if 00 [VGA controller]).


Saving a apt-get file for future installations, how do I do it?

When you install a package using apt-get corresponding deb files are downloaded in your /var/cache/apt/archives. Unless user deletes them all those files should be there. You can copy and preserve them for future use.

All you need is to set a local repository[Source]. Then you could install all those packages as usual using apt-get from it. Make a folder localrepo say at you home directory and put all the .deb files from /var/cache/apt/archives in it.

$ mkdir ~/localrepo
$ cp /var/cache/apt/archives/*.deb .

Next you need to create an index file for your repository. For that you need to install dpkg-dev (on your source machine only).

$ sudo apt-get install dpkg-dev

To create index file,

$ cd ~/localrepo
$ dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

It will create an index file named Packages.gz in ~/localrepo. In future you just need to copy the whole ~/localrepo to other machines where you want to install. If you modify the deb files in ~/localrepo you also need to update the index file.

Now you need to show apt-get the repo editing your source list in all machines where you want to install packages from your local repository. First backup your original source.list

$ sudo cp /etc/apt/source.list /etc/apt/source.list.original
$ sudo gedit /etc/apt/source.list

Write the following line in it and save,

deb file:/home/<user_name>/localrepo ./

Replace <user_name> with your exact user name. Now you are ready to install any package that exists in your source machine.

sudo apt-get update
sudo apt-get install <package_name>

You may need to give additional affirmation. As the repository is not trusted. For home use purpose it should be just enough as creation of a trusted repo requires quite a lot extra efforts. But your software center will not probably work with untrusted repo. But the advantage is that it will take care of all the dependencies for a package by itself.

If your /var/cache/apt/archives in your source machine do not contain any package. You can download deb files for all your existing packages using the following command in terminal,[Source]

dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only


Acer Aspire 1360 graphic driver problem (half black screen)

Try restart lightdm:

after boot press:  Ctrl+Alt+F3 (or another one)

then login and type: sudo restart lightdm

Hope it helps. (it does for me: eee-pc 1101ha)


gVim maximized with a gray line like status line

VIM computes the width and height of its display area using columns and lines, not pixels. Resize your GVIM window using your mouse, and you will notice the change.

Let's say the titlebar's height is 40px; when maximized, the width and height of GVIM window is 1024 X 722. Then, the total display area of VIM SHOULD be 1024 X 682 (722 - 40).

If the height of each line is 20px and each character (column) takes 5px, then there will be 51 (1024 / 20) lines and 4 (1024 mod 20) pixels, 136 (682 / 5) columns and 2 (682 mod 5) pixels.

The actual width and height of VIM's display area is 1020 X 720 while the resolution of the GVIM window is 1024 X 722, this making the rest area unused (the gray area).

How to fix it?

Never maximize the GVIM window, or you can use this trick:

:set lines=8888
:set columns=8888


I believe the problem you have occurs because of your VirtualBox setting that belongs to the Ethernet Adapter configuration: Host-Only Ethernet Adapter

As far as i know that setting would be helpfull if you would like to create multiple VM's that should be able to connect to each other, but not to the internet.

The VirtualBox Ethernet Adapter settings that you should use for letting your VM connect to the internet are: Bridged Adapter or NAT

One of the two, I think its Bridged Adapter will give you an IP that is reachable from your private home network.

Normally there is no need to modify any of the files in Linux that you mentioned in your question. That all should work automatically on startup.

EDIT:
I have created you some Screenshots with steps from one to three.
https://www.pic-upload.de/view-34609527/VBox_Ethernet.png.html

Step one: Select your VM and right click on it. From the contextmenu select Settings
Step two: Navigate to Network. Click on the drop down menu next to Attached to: and select Bridged Adapter.
Step three: Select in the drop down menu the hosts wifi or ethernet card that is connected to your router.

Run your VM and check with ifconfig if your virtual ethernet adapter gets an IP assigned.

EDIT II:
You said you tried all the above and you still encounter this error. So here some more hints:
First: Check in your VBox Network Settings of the specific machine if the checkbox Enable Network Adapter is checked.
Second: Click on the Advanced button and check if the checkbox Cable Connected is checked too.
Also have a look at the Adapter Tyoe drop down menu. I am using Intel PRO/1000 MT Desktop (82540EM). Promiscuous Mode is set to Deny and the MAC Adress is an unique one.
https://www.pic-upload.de/view-34616510/VBox_Ethernet2.png.html

All those settings should be set automatically. So if you still encounter your problem i have to apologize for not beeing able to help you.


I run Lubuntu on a Toshiba Satellite with a synaptics touchpad. I had some problems with it just randomly clicking on buttons and such. Some updates came around and screwed it up after it would work. Final working solution was reload drivers - older versions - and disabled some convenience functions.


The problem is solved.
The problem was caused by the fact that I have edited the above mentioned /etc/tmpreaper.conf file by using a web-based text editor which is built-in into the "Parallels Power Panel" file manager, which, as it turned out, for some reason, uses a Windows-style line breaks (\r\n) instead of a Unix-style ones (\n). So the program was actually trying to change a dir to a "/tmp/\r". Yesterday I downloaded the conf file, edited it locally, saved with a Unix-style line breaks, uploaded it back, and the program worked properly.


How to set brightness level even lower than default minimum?

Edit the following file -

sudo nano /sys/class/backlight/acpi_video0/brightness

and change the value to a lower value.

For more methods, refer to question:Decrease Backlight Below Minimum.


Windows 10 Update repartitioned my Ubuntu 16.04 drive

You've been hit with the Windows 10 Anniversary Update bug. It updates Windows 10, and wipes out Ubuntu (Linux) partitions.

Your sda3 partition in an "extended" partition that used to contain your Ubuntu partition.

You can try using testdisk to try and recover your missing partition. See http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step for information on how to use testdisk. You'll need to obtain a Ubuntu Live DVD/USB to run testdisk.


Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe driver tg3 will not install?

In the Launchpad Bug reports https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1005699, see item #24 for the fix. The discussion talks about a tigon3 (broadcom) driver problem in the kernel.  The 3.0.24 and below tree had this error but as Ubuntu now has support for a 3.0.25-40 kernel the bug has been fixed.  Item #20 talks the details of how this problem was discovered by working back from the development kernels 3.4, 3.3, and 3.2 and how it was discovered what the tg3_stop_block_error means.  It is a problem with TSO. TSO stands for TCP Segmentation offload.

Ubuntu 12.04 (Non LTS) came with a kernel older than 3.0.25.

What happened in the pre 3.0.25 kernel is explained by Matt Carlson here

  On the earliest TSO capable devices, TSO was accomplished through
  firmware.  The TSO cannot coexist with ASF management firmware though.
  The tg3 driver determines whether or not ASF is enabled by calling
  tg3_get_eeprom_hw_cfg(), which checks a particular bit of NIC memory.
  Commit dabc5c670d3f86d15ee4f42ab38ec5bd2682487d, entitled "tg3: Move
  TSO_CAPABLE assignment", accidentally moved the code that determines
  TSO capabilities earlier than the call to tg3_get_eeprom_hw_cfg().  As a
  consequence, the driver was attempting to determine TSO capabilities
  before it had all the data it needed to make the decision. This patch fixes the problem by revisiting and reevaluating the decision
  after tg3_get_eeprom_hw_cfg() is called.

sudo apt-get dist-upgrade should do the trick because it will install a newer kernel including the drivers required to solve this problem.


Sound popup showing every minute in xubuntu

Check your keyboard media keys, they are the usual suspects. Also verify what key combination you have to change the volumes, if you have set a more common key. If it's regular check the cron jobs using cron -e and any running script using ps ax | grep $USER


Sir, you have your priorities wrong. Take care of your layout, learn and use CSS, ruby, php even, and you will not have to edit each and single page.

P.S. And for batch modifications of text files use awk, sed, perl, python or a multitude of other tools that can do the job more reliably than any GUI interface. For example, use a templating system in the programming language of your choice or with ad hoc bash scripts taking advantage of the power of command line.


Wubi: How do I find the Windows partition from Ubuntu?

From the Wubi Guide

  How do I access the Windows drives?

  The Windows partition where you installed Wubi is available as /host
  within Ubuntu (Places > Computer > File System > Host) All the other
  partitions will be available under Places > Removable Media


autostart thunderbird on the tray in Lubuntu

If you add your startup application into /etc/xdg/lxsession/Lubuntu/autostart it will be run automatically twice - its just the way LXDE does stuff.

You can create an equivalent file and folder in your local home folder - this will autostart programs once.

mkdir -p ~/.config/lxsession/Lubuntu
nano autostart

add the text thunderbird into this file and save the file.

As to how to minimize the application on startup - this was recently discussed on ubuntuforums

In summary - install wmctrl

Create a script file called ~/start_thunderbird_hidden.sh

Copy and paste the following contents:

#!/bin/bash

thunderbird &
while [[ $(wmctrl -l | grep Thunderbird) == "" ]]; do sleep 0.1; done
wmctrl -r Thunderbird -b add,hidden
wmctrl -k on

Give this file execute rights:

chmod +x ~/start_thunderbird_hidden.sh

Then, instead of thunderbird in the autostart file above, use /home/[youraccount]/start_thunderbird_hidder.sh


Some Nokia Suite that might work for you:

Nokinux - Nokia PC Suite on Linux - Launchpad
Nokuntu - Unofficial Nokia PC Suite for Ubuntu!

Also it is better to search for an answer first here on AU, then to just ask it:

Posts containing 'nokia suite for ubuntu' - Ask Ubuntu
nokia suite for Ubuntu - DuckDuckGo


Screen turns off while watching video (VLC player & SM player)

Please do:

gconftool-2 --type bool --set /apps/gnome-screensaver/idle_activation_enabled "false"

That should keep the screen from turning off.


Windows can't access linux made folders in external hdd

Firstly, can you reproduce?

Run these commands in a terminal:

umount /dev/sdb5
mount /dev/sdb5 -t ntfs /mnt
echo "hello world" > /mnt/bar0.txt
mkdir /mnt/foo
echo "hello world" > /mnt/foo/bar1.txt
sync
umount /mnt

Now boot into windows.

Can you open file bar0.txt?
Can you open folder foo?
Can you open file bar1.txt from inside folder foo?

If you can't reproduce

Something went fubar during your original operation. Try reproducing with your original dataset. If you still can't reproduce, chalk it up to an anomaly until you can. That is to say, there isn't enough evidence to say what went wrong. If you're curious, try breaking it. Deliberately do things wrong until your actions reproduce the problem. Maybe the problem only manifests when the ntfs needs checking..

If you can reproduce

Gather logs. Look in /var/log for anything interesting, and especially dmesg. Pinpoint when/where the error happens. Is it when you create a file? Is it when you create a folder? Is it when you create a file in a folder? Is it when you don't run sync before umounting? Is it when you interrupt a large copy leaving broken files?

Secondly, some thoughts

Do the folders exist? When you boot back into linux, can you see the folders in question?
Are the folder names weird? There are a number of characters windows can't use in file names.
Does linux have the reverse problem? If you create a new folder in windows, can you see it in linux?


This command solved my problem:
python3 -m venv venv --without-pip


Touchpad sometimes not working after click on Thinkpad T440s

This is a hardware issue, and should be reproducible in other operating systems (like Windows 7). The Windows 8 drivers apparently have some sort of workaround (maybe faster reconnecting or ignoring of these error conditions). The issue (at least in my case) is easy to fix - the touchpad cable moves around and becomes disconnected when I press the touchpad button - you should be able to confirm this by determine if you only see the errors shown above when you push the touchpad down.

The solution is to either have Lenovo replace the touchpad, or fix it yourself. In my case, I rerouted the touchpad cable under the battery in a manner such that when I push the touchpad the cable does not come loose. This took only a few minutes, so if you've already opened the bottom of your laptop you probably don't have anything to lose.


Custom url in my local site (problem with .htaccess file)

Warning: This will change default setting for PHP and thus is inadvisable. DO NOT DO THIS
The .htaccess file might be present in this path /etc/apache2/sites-available/default. It seems that you need to change the permission to this file to be written by you user.

Instead DO THIS

create an .htaccess file inside public_html folder of your wordpress project with the following lines

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /vogue/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /vogue/index.php [L]
</IfModule>

This will enable Apache's rewrite engine which is used to route different requests to a single file, which is essential for


How can I control the configuration that netplan generates?

The on-link options is now available in netplan 0.34:
https://launchpad.net/ubuntu/+source/netplan.io/0.34
https://bugs.launchpad.net/netplan/+bug/1735193

There is currently no way to add "hooks" for the netplan steps, nor are we planning to add hook support in netplan itself. When a feature is missing, you should open a bug report against netplan (https://bugs.launchpad.net/ubuntu/+source/netplan.io/+filebug) so we can see if it's a common enough case to add it, or you can use the files generated by netplan directly by copying them into /etc/systemd/network/ (for networkd) or /etc/NetworkManager/system-connections (for NetworkManager), and removing the entries from your netplan config.

There are however plans to come up with a proper solution for users who need to run hook scripts for when the network is coming up though, or going down -- I'll update this answer / the netplan.io website once that's available. Using systemd units one should be able to control the network's behavior.


Ubuntu Gnome status status area cluttered, can it be moved up?

what you are looking for is an extension that will move the legacy tray to the top panel, the extention for gnome is called TopIcon and it moves the status icons to the bar.

Once at the site using Firefox allow it to install extensions, and after it's installed go to tweak tool and enable the extension from there.

Good luck.


What Ubuntu 20.04 package gives the Perl module Locale::Language?

Locale::Language is deprecated, suggest you install
sudo apt-get install liblocale-codes-perl

See below that reproduces the warning and suggestion to use  the separate liblocale-codes-perl package, as Locale::Language is deprecated
see:
$ perl -e 'use Locale::Language'
Locale::Codes will be removed from the Perl core distribution in the next major release. Please install the separate liblocale-codes-perl package. It is being used at
/usr/share/perl/5.28/Locale/Language.pm, line 22.

If you don't have Locale::Language installed you may get a different error
$ perl -e 'use Locale::Language'
Can't locate Locale/Language.pm in @INC (you may need to install the Locale::Language module) ...

You can use the cpan program to install it
cpan Locale::Language

but since it is deprecated suggest you install
sudo apt-get install liblocale-codes-perl


Closing - not killing - gedit instances via the terminal (to save changes)?

I do not think this is possible. You options are to enable backups and install gedit plugins. Session Saver (included in gedit-plugins) allows you to save you current workspace within gedit as it is, so that when you restore a session at a later time you can start right where you left your work.

There is also an additional package on sourceforge

http://sourceforge.net/projects/geditautosaves/


You may want to try following the readme at:  https://github.com/erichs/bootnukem

git clone https://github.com/erichs/bootnukem.git
cd bootnukem
sudo ./install.sh

Then

./bootnukem --dry-run


This looks like the same problem posted here: https://askubuntu.com/questions/423784/ubuntu-one-disconnects-after-a-few-seconds

maybe the authentication server has a temporally problem.

details from status.log:

2014-02-20 20:56:57,621 - ubuntuone.status - DEBUG - server connection lost
2014-02-20 20:58:57,695 - ubuntuone.status - DEBUG - server connection made
2014-02-20 20:58:58,118 - ubuntuone.status - DEBUG - server connection lost
...

details from syncdaemon.log:

2014-02-20 21:00:58,126 - ubuntuone.SyncDaemon.ActionQueue - INFO - Connection started to host fs-1.one.ubuntu.com, port 443.
2014-02-20 21:00:58,168 - ubuntuone.SyncDaemon.ActionQueue - INFO - Connection made.
2014-02-20 21:00:58,169 - ubuntuone.SyncDaemon.StorageClient - INFO - Connection made.
2014-02-20 21:00:58,412 - ubuntuone.SyncDaemon.ActionQueue - INFO - The request 'protocol_version' finished OK.
2014-02-20 21:00:58,690 - ubuntuone.SyncDaemon.ActionQueue - INFO - The request 'caps_raising_if_not_accepted' finished OK.
2014-02-20 21:00:58,931 - ubuntuone.SyncDaemon.ActionQueue - INFO - The request 'caps_raising_if_not_accepted' finished OK.
2014-02-20 21:00:59,138 - ubuntuone.SyncDaemon.ActionQueue - INFO - The request 'oauth_authenticate' failed with the error: TRY_AGAIN and was handled with the event: SYS_SERVER_ERROR
2014-02-20 21:00:59,139 - ubuntuone.SyncDaemon.StorageClient - INFO - Connection lost, reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.
].
2014-02-20 21:00:59,140 - ubuntuone.SyncDaemon.ActionQueue - WARNING - Connection lost: Connection was closed cleanly.

details from credentials.log:

2014-02-20 21:08:42,870 - ubuntuone.credentials - DEBUG - login: args (<ubuntuone.platform.credentials.CredentialsManagementTool object at 0xaaf734c>,), kwargs {'window_id': 0}.
2014-02-20 21:08:43,213 - ubuntuone.credentials - INFO - Starting Ubuntu One login manager for bus 'com.ubuntuone.Credentials'.
2014-02-20 21:08:43,217 - ubuntuone.credentials - DEBUG - ref_count is 0, changing value to 1.
2014-02-20 21:08:43,522 - ubuntuone.credentials - DEBUG - Handling DBus signal for member: 'CredentialsFound', app_name: dbus.String(u'Ubuntu One').
2014-02-20 21:08:43,522 - ubuntuone.credentials - INFO - 'CredentialsFound'
2014-02-20 21:08:43,522 - ubuntuone.credentials - DEBUG - ref_count is 1, changing value to 0.
2014-02-20 21:08:43,522 - ubuntuone.credentials - DEBUG - Setting up timer with <function timeout_add at 0xb6af6c6c> (10000, <bound method CredentialsManagement.shutdown of <ubuntuone.platform.credentials.dbus_service.CredentialsManagement at /credentials at 0x9af08cc>>).
2014-02-20 21:08:43,523 - ubuntuone.credentials - INFO - CredentialsManagement: emitting CredentialsFound.
2014-02-20 21:08:43,524 - ubuntuone.credentials - DEBUG - cleanup: removing signal match <<class 'dbus.connection.SignalMatch'> at a7eaa4c "type='signal',sender='com.ubuntuone.Credentials',path='/credentials',interface='com.ubuntuone.CredentialsManagement',member='CredentialsFound'" on conn <dbus._dbus.SessionBus (session) at 0xa98d4dc>>
2014-02-20 21:08:43,524 - ubuntuone.credentials - DEBUG - cleanup: removing signal match <<class 'dbus.connection.SignalMatch'> at a7ea44c "type='signal',sender='com.ubuntuone.Credentials',path='/credentials',interface='com.ubuntuone.CredentialsManagement',member='AuthorizationDenied'" on conn <dbus._dbus.SessionBus (session) at 0xa98d4dc>>
2014-02-20 21:08:43,524 - ubuntuone.credentials - DEBUG - cleanup: removing signal match <<class 'dbus.connection.SignalMatch'> at a7ea86c "type='signal',sender='com.ubuntuone.Credentials',path='/credentials',interface='com.ubuntuone.CredentialsManagement',member='CredentialsError'" on conn <dbus._dbus.SessionBus (session) at 0xa98d4dc>>
2014-02-20 21:08:53,533 - ubuntuone.credentials - DEBUG - shutdown!, ref_count is 0.
2014-02-20 21:08:53,533 - ubuntuone.credentials - INFO - Shutting down, calling <gi.FunctionInfo object (quit) at 0x0x9af0780>.


Regex with sed command to parse json text

Do not parse complex nested data structures like JSON or XML with regular expressions, use a proper JSON parser, like jshon.

First you need to install it:

sudo apt-get install jshon

Then you have to provide it the JSON data to parse via standard input, so you can either redirect another command's output there with a pipe (|) or redirect a file to it (< filename).

The arguments it needs to extract the data you want look like this:

jshon -e "buildStatus" -e "status" -u

-e "buildStatus" picks the element with the "buildStatus" index from the top level dictionary.
-e "status" picks the element with the "status" index from the second level dictionary picked above.
-u converts the selected data from JSON to plain data (i.e. here it removes the quotes around the string)

So the command you run, depending on where you get the data from, looks like one of those:

jshon -e "buildStatus" -e "status" -u < YOUR_INPUT_FILE
YOUR_JSON_PRODUCING_COMMAND | jshon -e "buildStatus" -e "status" -u

To learn more about jshon, you can read its manpage accessible online here or by simply typing man jshon.


How do I change the width of dashboard in GNOME?

You may try the "More columns in applications view" GNOME shell extension. It lets you

  Set the number of columns in the "applications" view (by default, the maximum is only 6)

and thus you would be able to use those empty spaces.

Refer to this to learn how to install and manage GNOME shell extensions: How do I install and manage GNOME Shell extensions?


Need advice on samba shares and permissions

OK, so thus far I've managed to, kind of, get what I wanted by creating a directory in myusername called music. I deleted the group and user music (and its home directory) altogether.

So now my home structure is:

- /home
   - /myusername
     - /music
   - /otherusername
   - /andanotherusername

And I managed to get fully accessible user home directories with (as I already had):

[homes]
   comment = %S
   path = /home/%S
   allow hosts = 127. 192.168.1.
   valid users = %S
   browseable = no
   writable = yes
   create mask = 0700
   directory mask = 0700

And a directory music being read only for guests and fully accessible for myusername with:

[music]
   comment = %S
   path = /home/myusername/music
   allow hosts = 127. 192.168.1.
   browsable = yes
   guest ok = yes
   guest account = nobody
   read list = nobody
   write list = myusername
   create mask = 0755
   directory mask = 0700

It still feels a bit weird to have to have a subdirectory in the myusername home directory though. Preferably I'd like to have the music directory not being tied to myself.

I wanted to answer my own question as a suggestion for others who might want to achieve similar things.

I'd still welcome better suggestions though.


owncloud client does not update in 12.04, asks for partial update

The following seems to solve the problem:

First, completely uninstall owncloud-client

sudo apt-get purge libqtkeychain0 libocsync-plugin-owncloud libocsync0 ocsync owncloud-client

Then, install again

sudo apt-get install owncloud-client

Now, no partial upgrade messages anymore.


Audio players that access music library as file browser (and see folder structure)

First, an example is Foobar2000 in Wine. Foobar2000 has different ways of displaying media library, my favorites being Album list (foo_albumlist,  component installed by default) and especially Facets (foo_facets, component to be manually installed). I am aware that finding something better than Foobar2000 is unlikely. The downside of Foobar is of course using Wine.

DeadBeef has a plugin called File Browser that displays the media library as folder structure. You need to select the path to the library: Edit-Preferences-Plugins-File browser-Configure. Only one such path can be set, which is a limitation.

Deadbeef player has playlist tabs but no library search (as far as I know).

Clementine is an excellent player. You just have to select "Files" instead of "Library". The player has playlist tabs.

sudo apt-get install clementine

Qmmp, mostly known fot its winamp-like GUI, has plugins (qmmp-plugin-pack) and one of them can activate a GUI which has the features demanded here.

sudo add-apt-repository ppa:forkotov02/ppa
sudo apt-get update
sudo apt-get install qmmp qmmp-plugin-pack

Amarok. Just like in Clementine, file browsing is available by selection on a left pane.

Thereon, it operates much the same way, except there are no tabbed playlists. These are accessible from a separate left-pane, Playlists > Saved playlists; they cannot be created from within the file browser. To create one, the easy way is to create a current playlist, go to Playlists as indicated (Playlists > Saved playlists), select the current playlist content and dra&drop it among the saved playlists.

Yarok can also access folders as intended here. No real tab playlists,but playlists are easy to create and access.

sudo apt-get install yarok

Quod Libet. Choose View - File System, then select one or multiple media library folders (Music-Preferences-Library);these folders are then displayed along the /home folder and mounted partitions and external drives. They can be browsed, but  there is no context menu nor drag-and-drop for folders: to get files into the current playlist one has to browse down to the audio files. Only then, these can be selected and added to a dedicated playlist. Access to playlists is by going again to View-Playlists; there is no common/parallel display of File browser and playlists, and playlists content is accessible only when selected (no parallel playlists like in tabs)

For KDE - Kaffeine - the KDE media player. I was pleasantly surprised how thoroughly this player is satisfying the demands of my question. In KDE it looks better because it is better integrated with the KDE appearance. In KDE  it seems integrated with Dolphin file manager, but it will work very well in other environments and will bring an integrated file manager feature. Without Dolphin  some secondary (Dolphin-specific) features, like preview play/view will be disabled, but the most important features are present inside the player, by just selecting the Playlist tab from the left side of the window. In this way it is easy to navigate to the music files and drag and drop them into the playlist.

Pragha can add multiple directories into the library and then accesses it by folder structure. It can display folders with or without the top level by clicking to merge folders or not.

It lacks multiple playlists (like Decibel, and unlike Deadbeef, Clementine, Exaile, Qmmp etc.)

I have tested other players mentioned in the other answers and will try to offer feedback on them too.

Exaile  has a GUI that looks very similar to Deadbeef, Qmmp and Clementine and the general experience is similar, given the tabbed playlists.

Guayadeque is a bit different. Its file browser is focused on the different directories added to the library, and that would not access all the system by default, but only the paths set by going to View-Preferences-Collections, and there by selecting and/or creating a collection and adding new paths. This is an advantage, as useless directories are thus not visible. Playlists are accessible by selecting My Music and then the Playlist view.

Decibel is more similar to QuodLibet, in that it has no playlists (tabbed or otherwise). By default, its file browser has a two-option switch between displaying whole folders ("root") or only  Home folder, but these can be edited, folders can be added or removed as indicated in the other answer, namely here.

Guayadeque, Deadbeef, QuodLibet, Decibel and Foobar2000 have a folder-view access of the music library (that is a way to select the specific target folders), not just a file browser to access any folders.

On the whole I tend to favor the players that have tabs for playlists and display them in the same window as the file browser, that is: Deadbeef, Clementine, Exaile, Qmmp.


To answer your second question, you may want to try out Clam (available from the Software Center) or Avast. Those two have GUIs that are quite user-friendly. However, if you prefer to work via the terminal, you can also try AVG.


sysctl -p return net.ipv6.conf.all.accept_ra = 2

You see only that because it is the only line not commented in /etc/sysctl.conf

net.ipv6.conf.all.accept_ra = 2 is used when you what to use ipv6 forwarding and also use ipv6 SLAAC. If you dont know what this means you should change the line to: net.ipv6.conf.all.accept_ra = 1

Changing it to 1 will allow you to automatically get a ipv6 Global or ULA address, only if ipv6 forwarding is set to 0.


wget localhost - connection refused - Atlassian Installation on AWS

I was using a low powered server. I literally had to leave it over night and it was working the next day. I'm not 100% sure this was the issue but please try that approach.


you will have to open [path to your theme]/gtk-3.0/apps/unity.css, and replace
-UnityDecoration-extents: 28px 0 0 0; for -UnityDecoration-extents: 28px 1px 1px 1px;.

and add:

border: 1px solid <your border color>;

to UnityDecoration.left, UnityDecoration.right {


This could be for a few different reasons. The three most common, that come to mind, are: change of display manager, display variable, and choice of desktop when trying to login (you may have installed more than one Desktop Environment).

To test to see if it is in fact one of those three, boot the computer and when the login manager (unity-greeter) presents itself, type control-alt-F6.

Ctl-Alt-F6

This will take you to a textual console. You then should type the name of the admin account, and your password. If it will not allow you to login like this then you have an issue with your password or something else. If you do succeed in logging with the admin account this way than simply type

:~$ sudo reboot

or

:~$ exit

if you choose exit type control-alt-F7 to return to the unity-greeter.

Please give some feedback on this.


Ubuntu shows incorrect Thai language with 'ls' command

As suggested in one of this question's answer:

  Inside a terminal emulator that supports UTF-8, you can use the luit
  command to run a subshell (or other program) in a different locale.
  The locale setting that indicates character sets is LC_CTYPE.

LC_CTYPE=ru_RU.KOI8-R luit ls   # run one command
LC_CTYPE=ru_RU.KOI8-R luit      # start a shell (type Ctrl+D or exit to return to the parent shell)

You could try to set for your putty's session:

PuTTY Configuration
    Session
        Window
            Translation
                Remote character set: UTF-8

This answer suggests to change Connection > Data > Terminal-type string to putty instead of xterm.
Changing your locale is suggested in this guide:

sudo update-locale LANG=<name of locale here>

user@ubuntu:~/ $ cat /etc/default/locale
LANG=en_US.UTF-8
user@ubuntu:~/ $ sudo update-locale LANG=uk_UA.utf8
[sudo] password for user:
user@ubuntu:~/ $ cat /etc/default/locale
LANG=uk_UA.utf8

In your case you could use th_TH.UTF-8

In my case putty displays Thai's encoding correctly even with xterm in Terminal-type string parameter:

Locale in windows:

  Current language for non-Unicode programs: English (United States)

Try putty's alternatives.

Update: We've tried to create a file with a name in Thai's encoding and it is displayed as expected - in Thai's encoding. But old file with name in Thai's encoding is displayed incorrectly. So we suggested the issue could be with how ftp server processes files in Thai's encoding.

Take a note what program or service writes changes to disk and how it encodes symbols in files' names with your encoding.


These are special locations as defined by freedesktop.org, and so is used by many programs, not only nautilus. They will be used by any file manager (dolphin, Thunar) and by apps - the Music directory by music players, Downloads by browsers, Documents by text editors, etc.

http://freedesktop.org/wiki/Software/xdg-user-dirs/

  xdg-user-dirs

  xdg-user-dirs is a tool to help manage "well known" user directories
  like the desktop folder and the music folder. It also handles
  localization (i.e. translation) of the filenames.

  The way it works is that xdg-user-dirs-update is run very early in the
  login phase. This program reads a configuration file, and a set of
  default directories. It then creates localized versions of these
  directories in the users home directory and sets up a config file in
  $(XDG_CONFIG_HOME)/user-dirs.dirs (XDG_CONFIG_HOME defaults to
  ~/.config) that applications can read to find these directories.

There is a nice discussion on the Arch wiki , see https://wiki.archlinux.org/index.php/Xdg_user_directories


Wine emulated Epic Games store cannot log in using Google account

I found that this was a distro issue and in Kubuntu and Pop OS it works fine.


Wireless not working after installing Kernel 4.0.5 on Ubuntu 15.04

Your device requires bcmwl-kernel-source.The version in the repositories doesn't build correctly for kernels 4.0 and later, as you've seen. With a temporary working internet connection, open a terminal and do:

sudo apt-get remove bcmwl-kernel-source
sudo apt-get install git-buildpackage
mkdir bcmwl-ubuntu
cd bcmwl-ubuntu
git clone https://github.com/longsleep/bcmwl-ubuntu.git bcmwl-ubuntu-master
cd bcmwl-ubuntu-master
gbp buildpackage -b -uc -us
sudo dpkg -i ../bcmwl-kernel-source_6.30.223.248+bdcom-longsleep0_amd64.deb

The kernel module will build automatically for all your installed kernel
versions with the help of DKMS and apply patching as required.

Reboot and your wireless should be working.


Live CD doesn't boot properly when trying to install

First, confirm the integrity of your iso and cd.

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

Specifically, check the md5sum of the iso

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

Then, when you boot, hit the up arrows. You will get the old style boot menu:

Choose "Install Ubuntu"

If that fails, you can try the alternate CD which has a more robust installer.

The concern I have , however, is that if the live CD does not work, then we probably need to debug your hardware, otherwise the install may fail in a similar way.


How to get out of grub error and stop it from happening again?

Repairing grub with boot-repair
Put the your live USB stick back in and boot from it, but do not go the actual installation, but select the "Try Ubuntu" option. Then in the in the live session make sure you have internet connectivity, open terminal with Ctrl+Alt+T and:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair
sudo apt-get install -y boot-repair
boot-repair

In boot-repair, select the "Recommended repair" option. After the repair finishes, reboot normally.


Why don't you try installing qps (qt process manager)?

sudo apt-get install qps

Now CTRLALTDEL should work.


It seems to have been a graphics problem. I have no idea why it occurred but this solved my issues:

Re-install graphic drivers

Downloaded from nvidia.com and followed instructions
Run nvidia-xconfig to generate new xorg.conf

Re-install nvidia-current

apt-get install --reinstall nvidia-current

Re-installed kubuntu desktop

apt-get install --reinstall kubuntu-desktop


Error during install of ubuntu. (WUBI 12.04)

are you trying to install Ubuntu 12.04 or 13.04 (in the title there is 12.04, in your question 13.04) since 13.04 the wubi installer is dropped. However when I made a usb startup disc yesterday I was surprised to see a wubi.exe file on it... I don't know what that is about. I would suggest to install Ubuntu on a separate partition and booting from a installation dvd/usb.


Missing Files app from dash / application switcher

If you open Nautilus and navigate to /usr/share/applications you will see some files named 'Files'. In the Nautilus window you will not see their filenames unfortunately you will see this:

If you first drag each file onto a gedit window you will be able to identify the files as:

nautilus.desktop
nautilus-folder-handler.desktop
org.gnome.Nautilus.desktop

All you need to do is to drag the one named org.gnome.Nautilus.desktop over onto your left panel launcher and simply drop it there. All should be well :)


Ubuntu OS gets lost in dual boot another one is Windows 8.

If you think you might have formatted the drive, create a Ubuntu pendrive using Universal USB Installer and "Try Ubuntu Without installation". Mount the drive and check for any files.

If the files are intact, use this link to rescue GRUB from a live USB.


Unable to connect to Broadband/PPPOE connection in Ubuntu 16.04 LTS

Actually I was trying to run my connection with the sudo pon command. The correct way is to type sudo pon dns-provider.


Screencast with avconv cuts off last 5 seconds of audio

I assume that you are ending the recording by pressing Ctrl+C in the terminal. This ends the program without letting it finish what it has started. What that means is that some of the audio just hasn't been processed yet. The issue is with the processor time, you have a lot of load going on with video conversion on the fly, and thus audio gets buffered and then processed quickly as a batch of some seconds. When you terminate the program, there is always some audio left in the buffer that hasn't been processed yet.

One simply approach would be to just wait a little bit before terminating the recording.

If you are open to using other software, you can also use RecordMyDesktop, which generates Ogg+Theora videos and works quite nicely on my system.


How to boot Ubuntu Linux from a USB drive?

You might have to enable the option in the BIOS. It should be pretty obvious once you get into the BIOS. This guide http://pcsupport.about.com/od/fixtheproblem/ht/accessbios.htm looks alright.

I may be able to help if you were to provide more information.


How do I create a device like /dev/zero, /dev/random to echo a specific value in demand?

Quoting from How is /dev/zero created and how can I make variants like /dev/one? (on SuperUser):

  There are device drivers that implement interaction with actual
  devices, and there are device drivers that just react to read-write
  requests in useful ways. If you want to you can sit down and write a
  driver that returns the lyrics of the Star Spangeled Banner. But it's
  a matter of coding ...

Unless you really need a device file, just use the yes command, which repeats its arguments ad infinitum (or y, if no argument is given):

$ yes Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
...

Also see:

How can I put a bit mask on /dev/zero so that I can get bytes other than zero? (on Unix & Linux)
How do I get an equivalent of /dev/one in Linux (on Stack Overflow)


Samba server won't let other people modify file attributes

I found the solution to my problem. It turns out the problem isn't related to Samba after all. Sorry. :)

How to Fix a Locked iTunes Library File
-- http://www.ihackintosh.com/2010/01/how-to-fix-a-locked-itunes-library-file-2/

I've paraphrased the answer here by request:

Make sure iTunes is closed.
Go to your iTunes folder and move the iTunes Library file to your desktop. (You might want to create a backup of all the files in the main folder if you're worried you're gonna lose data.)
Launch iTunes. Your library should be empty.
Restore your library by dragging the iTunes Library file from your desktop into the iTunes window. In the iTunes window that pops up, click Replace.


How to install newest PulseAudio with all packages though terminal?

It would seem extremely unlikely that you'd need to manually install more PulseAudio packages. The general rule with installing packages is that if you don't know why you need it, don't do it. This rule is even more important when you're trying to install packages for completely separate subsystems (installing audio packages to fix Bluetooth, for example).

However, updating your packages is pretty easy, and should be done regularly. Just pop open a terminal and run these two commands:

sudo apt update
sudo apt full-upgrade

This will upgrade all of your packages and programs to the latest versions known in the Ubuntu repositories and any additional PPAs that you may have manually added to your system.


15.04 "Software Updater" claims there are updates, then realizes there are none

I think the answer is in the first screenshot you sent: "A previous upgrade which didn't complete". Could you open a terminal and issue:

$ sudo apt-get update
$ sudo apt-get upgrade

If it shows error (you may) run

$ sudo apt-get -f install

or

$ sudo dpkg --configure -a

depending on the type of problem that apt found (it will suggest you what to pick). Sometimes the Software Updater is not enough to fully upgrade packages.

In any doubts just post it here.


I want to remove windows 8 and keep ubuntu 15.04

Read the definition of BIOS from here https://en.wikipedia.org/wiki/BIOS .

The answer is : no your BIOS will not be removed.


What will happen to old version of python when I upgrade from 16.04 to 18.04?

Updating to Bionic Beaver (18.04) won't change your Python installations as long as the upgrades go well and as planned. I would recommend to make a backup first, because sometimes they don't.
With 18.04 Python 2 is no longer comes preinstalled, and Python 3 has been updated to 3.6 - but as said: your manual installation stays as it is.
To uninstall, you can use e.g. (change for your need)
 sudo apt-get remove python2.7

but there could be some dependencies preventing you to so so. Backward compatibility isn't so easy with Python. My personal recommondation would be to keep at least one 2.x version.
Some credit goes here:
How can I remove python 2.7 after installing python 3.3?
If you just don't want to type python3, you could also add an alias to your bash's configuration file, so when you'll write python in your terminal, it will be like writing python3. This is useful, but potentially can create misunderstanding.
HOW TO DO
Add
alias python=python3

at the bottom of the ~/.bashrc file (or simply echo "alias python=python3" >> ~/.bashrc with sufficient rights)
Than do:
source ~/.bashrc

from the terminal to update bash with the changes.
(from How can I uninstall python 2.7 and reinstall 3.5 in Ubuntu 14.04? )


You can

create a partition and make it a swap partition with mkswap or gparted
add a corresponding line in the file /etc/fstab to make it active at boot. You can use

sudo swapon -a

to make all swap devices (files and partitions in /etc/fstab) active.
You can also create a second swapfile (with another name), or maybe better, replace the current swapfile with a new one.

But first you should consider, if you really need more swap and in that case why and how much.

Managing swap is a typical task, where you need sudo permissions.


Ubuntu 12.04 video issue on Dell Inspiron 1100

Ubuntu and Dell Inspiron 1100
Change Video Memory in BIOS setup:
Make sure your Dell Inspiron 1100 notebook has been upgraded to the A32 BIOS.
When you start your computer, hit F2 to enter Setup.
Press Alt-P (Turn the page) until you get to the page with the video memory (might be page 6, and might be listed as UMA (it’s actually “VMA”) size).
Change the video memory from 1MB to 8MB.
Reboot.
Once you've installed Ubuntu and you reboot, press Escape at the GRUB loader (it's the screen right after your bios initializes). Ubuntu Karmic (9.10) and higher will need to press and hold the left Shift key instead of Escape.
Press e to edit the first kernel displayed.
Find the line ending with "quiet splash". Add your boot option before these key words - i.e. so the line looks like ..."nomodeset quiet splash".
Then press CTRL + X to boot.
To permanent this to GRUB2, you should add this option to /etc/default/grub, from a command prompt (terminal):
sudo gedit /etc/default/grub

The suggested options that I have found are hardware specific. Here is a list:

Older Intel video card: i915.modeset=1 or i915.modeset=0
nVidia: nomodeset
Generic: xforcevesa

Then add "i915.modeset=0" to GRUB_CMDLINE_LINUX_DEFAULT:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=0"
GRUB_CMDLINE_LINUX=""

Save your changes and you should get proper graphics on each reboot after doing:
sudo update-grub

To fully utilize the graphics, you also need to tweak xorg.conf:
sudo gedit /etc/X11/xorg.conf

Here is an example of what you should consider/what I have in mine, everything might not be needed/be legacy:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#

Section "Module"
    Load    "GLcore"
    Load    "i2c"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "type1"
    Load    "vbe"
EndSection

Section "Device"
    Identifier  "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
    Driver      "i810"
    BusID       "PCI:0:2:0"
EndSection

Section "Monitor"
    Identifier  "Generic Monitor"
    ModelName   "Dell 1024x768 Laptop Display Panel"
    Option      "DPMS"
        HorizSync   31.5-48.5
    VertRefresh 59-75
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Device      "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
    Monitor     "Generic Monitor"
    DefaultDepth    24
    SubSection "Display"
        Depth       1
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth       4
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth       15
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier  "Default Layout"
    Screen      "Default Screen"
EndSection

Section "DRI"
    Mode    0666
EndSection

# End /etc/X11/xorg.conf

I also strongly recommend running Unity 2D on this machine.
At login prompt, click on the Ubuntu logo after your name and choose "Ubuntu 2D".
I also recommend making the icons smaller:
http://www.liberiangeek.net/2012/06/resize-unity-2d-launcher-in-ubuntu-12-04-precise-pangolin/
After all this, you should now be able to reboot into your nicely working Ubuntu installation. Enjoy!


Panel Background color, Transparency and background image don't work with Ambiance theme

This is indeed a bug with a current bug report: https://bugs.launchpad.net/ubuntu/+bug/664794

Click up at the top and mark this bug as affecting you as well.

The problem isn't just the Theme Ambiance, it is actually the "Controls" Ambiance. Clicking "Customize" and changing "Controls" to another one should fix this, while changing the "Controls" for any other them to Ambiance will cause this bug as well.


How to change the color of particular file?

I needed the color difference whenever try ls -l or ls commmand.

So I just used $LS_COLOR variable and modified it like this.

LS_COLORS='*.c=01;32:*.out=31:*.sh=01;35:'

 for more this source about bash


Remove the codeblocks-common.

sudo apt-get remove codeblocks-common

then

sudo apt install -f
sudo apt-get update.

Now try to reinstall. It should work now.


NetworkManager is not part of the server images, including the 19.10 raspi preinstalled server images.  So it looks like you have installed that yourself, and that's why it's getting addresses for you on the wlan interface.

As for ifconfig wlan0 not showing the address, ifconfig is a deprecated tool that does not show multiple addresses on interfaces, only the first one assigned.  If you run ip addr show instead, you will probably see that both addresses are on the interface.

It is possible to use netplan alone to manage your wlan0 interface; see https://netplan.io/examples for details.  However, if you have a requirement to request a specific IP address from the DHCP server (your "static IP address"), that is not supported.  I would suggest either using an actual static IP address (by using an address assigned locally in a range outside of your DHCP server's pool), or letting the DHCP server assign the address.  Most DHCP server implementations are stateful and will give the same IP address back to the client each time it asks anyway.


Why does aptitude give me the "Does not have Super Cow Powers" error?

When you run aptitude with an unrecognized command or with the --help flag, you get a screen briefly describing all the kinds of operations aptitude can perform. At the end, it says:

This aptitude does not have Super Cow Powers.

Since you're getting this text (the whole thing, not just the Super Cow Powers thing) while presumably trying to perform some real operation, this means you've mistyped your command. We can't give you more specific information unless you show us exactly what you're entering into the Terminal to produce this message.

This is not about the Super Cow Powers. That's just the final line of the long message you get when you tell aptitude to do something it doesn't know how to do.

While I cannot tell you exactly what you should have typed because I don't know what you did type, I can provide more information about Super Cow Powers, which hopefully will address the confusion surrounding this (intentionally silly) term.

Super Cow Powers is a term for an easter egg in apt-get (see also APT). There are related easter eggs in aptitude. See this article and this other article.

ek@Apok:~$ apt-get moo
         (__)
         (oo)
   /------\/
  / |    ||
 *  /\---/\
    ~~   ~~
...."Have you mooed today?"...
ek@Apok:~$ aptitude moo
There are no Easter Eggs in this program.
ek@Apok:~$ aptitude -v moo
There really are no Easter Eggs in this program.
ek@Apok:~$ aptitude -vv moo
Didn't I already tell you that there are no Easter Eggs in this program?
ek@Apok:~$ aptitude -vvv moo
Stop it!
ek@Apok:~$ aptitude -vvvv moo
Okay, okay, if I give you an Easter Egg, will you go away?
ek@Apok:~$ aptitude -vvvvv moo
All right, you win.

                               /----\
                       -------/      \
                      /               \
                     /                |
   -----------------/                  --------\
   ----------------------------------------------
ek@Apok:~$ aptitude -vvvvvv moo
What is it? It's an elephant being eaten by a snake, of course.

What it means to say that aptitude does not have Super Cow Powers is that it does not have the ability to display the Super Cow displayed when you run apt-get moo. This is one of the very few capabilities present in apt-get but not in aptitude. ;-)

  Source:
  https://answers.launchpad.net/ubuntu/+source/sudo/+question/160087


You need to install guest additions.

Press Host (usually right Ctrl) + D and you will see a mounted disk.
Run it and it will install the guest additions.
Reboot the virtual machine and you're good to go. :)

If Host + D doesn't work, click on the Devices option of your virtualbox and you will see "Install Guest Additions" option at the bottom of the drop-down menu.


Not able to install redmine properly. Showing index and dpkg error

I had the same issue today. Looks like a certificate problem with the phusion server. Not sure.

I used this guide and after this error message I kept going with the installation.

In the end i just typed the following command:
gem install passenger

and it worked.


Templates directory in Ubuntu: can I use this feature with gedit in bash shell?

No, bacause that behaviour is associated to the desktop.

However you can do this:

cp $HOME/Templates/example\ gedit.txt myNewFile.txt
gedit myNewFile.txt


I have a P51 and have the same problem. There is no audio when the laptop is connected to the docking station AND IF a headset or external speakers are connected to the docking station. Unplugging the headset from the docking station has solved the problem for me (at least partially). Connecting the headset to the laptop itself works, too - even when the laptop is connected to the docking station.


How to install proprietary drivers via CD-ROM on a netbook?

Try this, taken from here How to use a .iso image as a CD-ROM Repository?

If you want to use the ISO image as a software source without burning it, the process will be a bit more complicated. You will need to open a terminal Applications -> Accessories -> Terminal and run these commands:

sudo mkdir /aptoncd-mountpoint

sudo mount /media/USB/aptoncd.iso ~/aptoncd-mountpoint -oloop

sudo apt-cdrom -d=/aptoncd-mountpoint add

(source: http://www.debianhelp.org/node/10486)


Problem with NetBeans 7.0.1 on Ubuntu 14.04

Looks like you're hitting bug 1274469; the libnb-javaparser-java package is newer than the netbeans installation.

The fix is to manually downgrade your version of libnb-javaparser-java, to match the version of netbeans that's installed. You can do this with:

wget http://archive.ubuntu.com/ubuntu/pool/universe/libn/libnb-javaparser-java/libnb-javaparser-java_7.0.1-1_all.deb
sudo dpkg -i libnb-javaparser-java_7.0.1-1_all.deb

then restart netbeans.


How Do I Add A New File To Hide X's Library?

You can, and when dealing with remote files it's often necessary to add or remove files. For example I use some files from Google, and have to supplement them regularly. It's true that it's not in the man, but you can use the command hidex spill to access the complete list.

Steps:

Type: hidex settings
Press "8" so that you can modify the library.
hidex add +source="/path/to/file/example.txt" +password="password" +length="100%"


How can I list the WM manager sessions available from the command line?

For each session there's a *.desktop file in /usr/share/xsessions/. The session names  used by lightdm are the file names without the .desktop.

You can list them using something like

ls /usr/share/xsessions/*.desktop | sed -re's:.*/([^.]+)\..*:\1:'

To get the names as displayed by the GUI use

awk -F= '/^Name=/ {print $2}'  /usr/share/xsessions/*.desktop


You should know that when you add the option -basic you actually set multiple parameters. What you might have wanted to do is --basic for basic authentication. Also the final $ sign is probably a typo.

If you execute the following, do you get the same unexpected behavior?

curl https://www.yahoo.com


usually a ticking sound is caused by a capacitor going bad or an arcing across circuits in your sound chips.  It is highly unlikely to be caused by software. I am a repair technician and I have frankly never seen ticking caused by software. Try checking the speakers plugs and see if they are seated properly in the motherboard jacks. Are they clean? Do you get strange sounds when you touch them? Clean the plugs with a napkin before reinserting them. Try hooking your speakers to another computer to see if they have a bad capacitor making the ticking. Look inside your computer and see if any wires are laying on the motherboard. If you are using a soundcard, unplug it and very gently clean the gold connectors with a soft pink eraser then reseat it.
Is there a lot of static in the area around your computer? Fluffy pile carpet or anything like that? I always recommend to people that they buy a can of anti static spray and use it once in a while all around their computer if they have any carpeting. And very lightly mist the computer housing as well. Static can wreak havoc with soundcards and motherboards.


How to compleately remove the i3 desktop enviroment from Ubuntu?

Alternatively you can do

sudo apt remove i3* && sudo apt autoremove

to remove all of i3 and anything i3 installed


The best solution that worked for me was to install OpenSwan on a Ubuntu Server using these instructions

On Ubuntu server terminal use the following command to monitor the OpenSwan operation:

sudo tail -f /var/log/auth.log

Then you can connect to that server on your lan from a Windows PC following these steps. Windows' built-in client can handle L2TP with IPsec VPN so you won't have to install any additional software. Though you may have to tweak Windows PC a bit

This is easier to setup and use.