Tag Info

Hot answers tagged

9

I followed a thread on Ubuntu forums to solve this problem. There seems to be a line missing from this maintenance script file: /var/lib/dpkg/info/libreoffice-base.postrm The missing line, /usr/lib/libreoffice/share/basic/script.xlc needs to be added to the end of the file's second if statement, just above the closing fi, like so: --divert ...


7

The program etckeeper keeps track of setting changes in the /etc directory, using a source code repository like git or bzr. So it really tracks the actual changes of config files. It commits changes automatically when installing packets, for example. See man etckeeper It's easy to set up - not much more than apt-get install etckeeper and optionally editing ...


7

First enable rewrite using this command: sudo a2enmod rewrite Then restart apache2: sudo service apache2 restart Then go into the sites-available folder: /etc/apache2/sites-available Edit the file named default and change AllowOverride none to AllowOverride All. There are two lines where this change has to be made. This will make .htaccess work in ...


7

You can set the default via the update-alternatives mechanism, using the command sudo update-alternatives --config awk e.g. $ sudo update-alternatives --config awk There are 2 choices for the alternative awk (providing /usr/bin/awk). Selection Path Priority Status ------------------------------------------------------------ * 0 ...


6

The trick It seems impossible to separately set wallpapers for the main screen and the second screen. What can be done however is to set a wallpaper, and have it spanned over two screens. We can automatically create a spanning image of two wallpapers of your choice and (also automatically) switch the wallpaper and the picture options, depending on whether ...


5

According to man 5 sshd_config: %h is replaced by the home directory of the user being authenticated This means the file will be /home/user/.ssh/authorized_keys. If the .ssh directory is missing (which seems normal if not previously configured) you can create it and also the authorized_keys file within and then populate the file's contents with your ...


5

Packages (like postfix) may install or generate configuration files (files that usually go in the /etc folder). During this process, there may be options that can be changed by the user. On installation, you are usually asked to set these options. In the case of postfix, it involves what type of server you're running, the hostname, and allowed IP addresses ...


4

To tell Bazaar who you are, simply run: $ bzr whoami "Bob Dobbs <subgenius@example.com>" $ bzr launchpad-login subgenius whoami will tell Bazaar which name and email address it should use for your commit messages. With launchpad-login you set your Launchpad ID. This way code that you publish in Launchpad will be associated with you. ...


4

You can get the file from the OpenSSH client package: apt-get download openssh-client dpkg-deb --fsys-tarfile openssh-client_*.deb | sudo tar -xC / ./etc/ssh/ssh_config This will extract the ssh_config from that package directly to its destined location /etc/ssh/.


4

Open the file /etc/nanorc (run sudo nano /etc/nanorc) and comment out the line set historylog in this section: ## Enable ~/.nano_history for saving and reading search/replace strings. set historylog Which should then look like this: ## Enable ~/.nano_history for saving and reading search/replace strings. # set historylog Then exit&save and you're ...


3

Open skype's Options window, select the Advanced tab and enter your desired port number into the number field on the right. You should just take care that the new port is not already used by any other application and that you chose a number greater than 1023, as those are reserved.


3

IMHO, the most valid approach would be to create a new account only for this purpose, for "guest" users that aren't normal users for you. Choose a name that is valid for you in this purpose (like visitor), set it to login without password, and you are in!


3

A rootkit is the nastiest piece of malware you can have on your system and basically they're mostly self-hiding toolkits used by blackhats, crackers and scriptkiddies, to avoid the prying eyes of the sysadmin. So it also takes a lot of skill to detect these and rootkit removal is always done through re-install. In the README of Rkhunter, it is clearly ...


3

If your configure output looks similar tho this, the C++ compiler is missing: [ ... ] *** C++ compiler and preprocessor checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no ...


2

The command should be ../configure CFLAGS="-O3 -pipe -fPIC -mfpu=neon -mfloat-abi=hard" so double inverted commas, not single.


2

Those are examples. Use only the ones you need to. I only use the Debian and Ubuntu configuration lines. From the manual, the syntax for the Remap directive: Remap-RepositoryName: MergingURLs ; TargetURLs ; OptionalFlags The MergingURLs are set of mirrors which are considered equivalent. I think this lets you mix and match mirror URLs in the client ...


2

DNS were all rights, I was doing some trial in local domain before putting them on production.. I solved the issue more easier (I don't have index.html or any other files, I have only folder name).. Finally, I think this would be helpful for someone, the configuration is: upstream tomcat_server { server tomcat.domain.com:8080; } server { listen 80; ...


2

You can try a utility called Arandr. I didn't test, of course, the Oculus Rift with this tool. But the program helped in cases when Ubuntu didn't allow achieving desired configuration by inbuilt stuff sudo apt-get install arandr


2

From @steeldriver comment: git config --global core.editor "emacs -nw"


2

While I hate the "RTFM or go search Google" answer that was given, it really is best. Go to the manufacturer's site, go to their support section or the place where they offer drivers and software for download, and there will be a place to search for your model. Chances are, they have a link to a PDF manual there. Open it and search for the term Sync. ...


2

In ubuntu 14.04, all I did was this: Modify /etc/default/grub and add: GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0" Then force the create of a new grub.cfgfile sudo update-grub Then reboot the system


2

From https://unix.stackexchange.com/questions/154656/etc-init-d-nis-missing-on-ubuntu/154661 Not your fault, it's a bug in the documentation: https://bugs.launchpad.net/ubuntu/+source/nis/+bug/1303717 The package uses upstart, which uses files in /etc/init/ rather than /etc/init.d/. But I also don't know how to restart nis now... Also, it ...


2

unfortunately your target directory have no global permission so you can't create new directory or file in there! open your terminal and type this: cd /opt/lampp sudo chmod 777 -R htdocs first line navigate you to target directory and second line will change your permission with chmod command...


2

From man rkhunter: --sk, --skip-keypress When the --check command option is used, after certain sections of tests, the user will be prompted to press the return key in order to continue. This option disables that feature, and rkhunter will run until all the tests have completed. If this option has not been given, ...


2

It is going to vary with hardware and my guess is that you need 2 separate sound cards or a sound card / mixer capable of such separation. You can then configure pulseausio to send output to specific locations / cards with pavucontrol , in the playback tab One may need to install pavucontrol , either with apt-get or from the software center. sudo ...


2

What you want would defeat the purpose with the guest session feature. What you can do is customizing the guest session in advance, but anything you do from within a guest session will be deleted when you log out.


2

The tutorial step 2 asked to create a new user: hduser. So if you decided to adopt this username for the Hadoop user, the path of start-all.sh should be: cd /home/hduser/hadoop/bin/ start-all.sh Or if installed system-wide: /usr/lib/hadoop/bin/


2

Install activemq : sudo apt-get install activemq


1

A quick and dirty way could be to clear the file, then set read-only permissions to that file with: echo "" > ~/.nano_history chmod 400 ~/.nano_history


1

Resolved the issue by using this as my .htaccess file RewriteEngine On RewriteBase /~admini/me/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]



Only top voted, non community-wiki answers of a minimum length are eligible