Tag Info

New answers tagged

0

To execute a shell script a.sh if file a.file exists and is a regular file, you can use this construct: [ -f a.file ] && source a.sh


1

See less /var/log/syslog, less /var/log/dmesg and the older versions of these files. gziped backups of these files can be read with zless.


0

I assume, that you don't have only 9 processes. You could use, eg: pgrep sched pgrep bdflush or ps -u root | grep sched ps -u root | grep bdflush


0

Remove everything to do with the Nvidia proprietary drivers. sudo apt-get remove --purge nvidia-* Start from scratch. sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv Reinstall all the things! sudo apt-get install nvidia-current nvidia-settings sudo apt-get install xserver-xorg-video-nouveau sudo apt-get install --reinstall ...


1

Most likely the enctypes your kerberos KDC has for your principal isn't something that kinit on your ubuntu system is set up to use. You might need to edit your /etc/krb5.conf to set default_tkt_enctypes and default_tgs_enctypes in the [libdefaults] section to be the appropriate value. I know a lot of older, out of date KDCs will still use 'des-cbc-crc', ...


0

I'm exactly sure what you mean by "parameter for "exe_name" for openssl", but: afl-fuzz -i test -o findings ~/path/to/binary/to/fuzz @@ will fuzz the binary at ~/path/to/binary/to/fuzz, substituting @@ with the path the mutated test case generated from the seed files in test.


1

You have, presumably inadvertently, installed the apt-listchanges package. This packages lets you review the list of changes whenever you upgrade packages. The software that's running in the terminal and that waits for you to press q is the pager less, by the way. Remove the apt-listchanges package and this will go away. This is completely unrelated to ...


1

I finally figured out the actual answer when I read the wikipedia entry for XZ (https://en.wikipedia.org/wiki/Xz): One can think of xz as a stripped-down version of the 7-Zip program. xz has its own file format rather than the .7z format used by 7-Zip (which lacks support for Unix-like file system metadata[2]). It is in fact okay to have millions ...


1

Posting comment as answer: for d in directory_*; do cp -R "$d" "tmp_$d"; done Credits @drewbenn


4

You almost have it with your second command. You did it correctly with the first, just use the same shell sequence expansion: vim directory_{0..10}/results/output.txt You should see something in the shell about opening 11 files. Then you can use vim to iterate through each one.


-2

The command cat -n [filename] | tail will get a quick count and display of the most recent records if that's what you're looking for. The -f switch makes it persistent until escape - which really doesn't sound applicable in your scenario or is redundant. wc -l [filename] will get a count of the lines in the target wc -l [filenameprefix]* will count all ...


0

rsync's -a option is actually an alias for (according to the manpage) -rlptgoD. The -p in that list is for "preserve permissions"; i.e., rsync will do stat() on the source file and copy the permission bits to the destination file. Since windows doesn't have any unix permissions, cygwin has to come up with an approximation, which necessarily is somewhat ...


1

First, install the initramfs tools before we being so that we can update the kernel properly. sudo apt-get install initramfs-tools Create a new temp folder that we can use for the time being for installation: mkdir /kernel_tmp Go to your /kernel_tmp folder, and run the following lines to download the kernel. wget ...


0

Question 1 From the mount man page: Description All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the filesystem found on some device to the big file tree. Conversely, the umount(8) command will detach it ...


0

That string is set in /etc/issue. You can (as root) edit that file to change the message. Note that you'll have to have the getty respawn to print the new message; usually failing a few login attempts is enough (but other things will work too, such as killing it, or of course rebooting).


2

There is a "Reset" toolbar command to the right of compile. That will stop the running program in Dr. Java.


-1

forget starting with a distro, compile from source and go headless (i.e. text mode) gui's are not going to help become learned. https://wiki.archlinux.org/index.php/Kernels/Compilation/Traditional yes, Arch is a distro, but it's showing you how to do it, without telling you to go Slackware. have fun, learning is the best lunch to have!


0

Perhaps the session init is being called to instead of the system init. Try it by unsetting the variable UPSTART_SESSION env -u UPSTART_SESSION initctl list env -u UPSTART_SESSION initctl start uptest etc.


0

I'm reposting Part of Another Answer here in hopes that it will help you, instead of telling you to use a VM... If doing this helps, I'll readd Part 2 with some explanation that fits here. BTW, these screenshots are from my Personal Laptop, that I used this method with to keep Windows Update from bonking my non-refind EFI, discussed in the question I asked ...


0

I have used "TestDisk" program to retrieve the lost partition, and it worked like magic


0

I expect you have a DUAL CORE Pentium 4 and this enables you to run 64bit code. The earlier single processor P4s ran at a lower speed and only worked 32bit.


0

exclude='<>&' in __reassemble_comp_words_by_ref says about missing = in COMP_WORDBREAKS. You can reproduce with bash-4.* and bash-completion-2.*: COMP_WORDBREAKS=${COMP_WORDBREAKS//=} export JAVA_HOME=/u<Tab> Fix: add = to your COMP_WORDBREAKS.


1

I've just finished installing gcc-3.4.6 and gcc-2.95.3 on Ubuntu 14.04 using the steps from the following tutorial. It doesn't make much sense for me to post the steps here because you also need to download some patch files from that page. For both compilations I had to add -D_FORTIFY_SOURCE=0 to the CFLAGS in all the Makefile from the gcc build directory ...


0

I ended up just running the commands in a single crontab line with && and inside of a bash -l -c statement, it is working now!


0

Well, this issue was fixed in Ubuntu 14.04. It also switches to USB modem mode automatically. So, upgrading to 14.04 solved the problem.


0

I have exactly the same issue here (but tapping doesn't work, but touchpad buttons works fine). my synclient says: Couldn't find synaptics properties. No synaptics driver loaded? and xinput list-props "ETPS/2 Elantech Touchpad" Device 'ETPS/2 Elantech Touchpad': Device Enabled (135): 1 I also use awesome, but on unity it doesn't work as well. ...


2

You might find this thread and this one pretty useful. If your wifi network uses WEP encryption, then # turn wireless card on: ifconfig wlan0 # wlan0 is your wireless interface # connect to network iwconfig wlan0 essid <name> key <password> # Here # <name> -- your access point name # <password> -- your password # Then ...


0

I experienced similar behavior with Linux Mint 17.1. Icons were changed when I switched to NVIDIA card. I've found a solution here: Icons, controls themes don't work after clean install The solution is to remove ~/.config/monitors.xml file. I assume, that the problem is connected with using an external monitor. Not sure if this workaround work with ...


0

The Master mixer control is whatever is implemented by your hardware. When you tell amixer to increment by 5 %, it just searches for some supported value that is nearest to what you want. Please note that the raw mixer values do not necessarily correspond to actual loudness as you perceive it, i.e., 5 % might not be the same relative change in loudness ...


0

I think that I have found the answer: On the Ubuntu 14.014, I should monitor the interface "com.ubuntu.Upstart0_6" instead of "org.gnome.ScreenSaver".


0

You can also have a look at the workaround given at Red Hat Bugzilla - Bug 713955 - SSH_AUTH_SOCK environment variable not present in terminals launched via keyboard shortcut by adding this to your ~/.bashrc: #GPG and SSH agent not exported when running terminal by shortcut if [ -z "$GPG_AGENT_INFO" -a -z "$SSH_AUTH_SOCK" -a -n "$GNOME_KEYRING_CONTROL" ] ; ...


1

Linux has multiple virtual consoles. Ctrl+Alt+Fn switches between these consoles. When you switch from console 7 to console 2, the input and output peripherals are re-routed from console 7 to console 2. When console 7 is inactive, it has no access to the input/output peripherals: the display isn't shown on the screen, the applications don't receive keyboard ...


1

A while back, people used computer terminals to input data into, or display data from, a Unix mainframe. If any of this terminal users wanted to, let's say, cat /dev/zero, the output was not broadcasted to all terminals/users connected to the same mainframe (that's because it was a multi user system, and each user could run it's tasks without affecting other ...


1

NTFS is a proprietary file system (MS). Everything ntfs-3g is able to do was achieved by reverse engineering. Considering the above, I would not expect a proprietary file system to be as fast as an open file system (under linux). Now, if NTFS should be only 20% slower than ext4 (instead of 50%) in your case, i do not know, but i'm sure you can have a clean ...


2

In ubuntu 14.04 the DBus event for screen lock unlock has changed and the new script for binding to screen lock and unlock events looks like the following dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | \ ( while true; do read X if echo $X | grep "desktop-lock" &> /dev/null; then SCREEN_LOCKED; elif ...


1

It's a bash script rather than python-apt, but I have found dpkg-offline which contains similar logic. I've looked at how it works and have managed to create a script of my own to do the necessary downloading - reproducibly and as an ordinary non-root user: #!/bin/bash set -e die() { exec >&2 printf '%s\n' "$@" exit 1 } test "$UID" != ...


2

If you really have to have that local obsolete OpenSSL 0.9.x - not something anyone could recommend given the security implications - use equivs to generate a dummy libssl package that will indicate its existence in the packaging system. But you should really just use the normal system OpenSSL packages to build your applications, that is, build after ...


1

On linux, the reading of /etc/environment is usually done by the pam_env.so module during login. This module may not be installed on a minimal system, or may be configured not to read the /etc file, or it may not be configured in /etc/pam.d/* to be called during the login process. See man pam_env pam.


0

There is no obligation coded into most shells to load /etc/environment. Which exact files the shell looks for and what order it attempts to load them depends on the actual shell you use, but in general only /etc/shellnamerc and ~/.shellnamerc are ones you can absolutely count on being read, usually in that order. Consult your preferred shell's manpage for ...


0

Solved it by deleting "~/.gtkrc-2.0". Somehow there were other fonts configured. Source: https://wiki.archlinux.org/index.php/GTK%2B


0

According to How do you add a certification authority to ubuntu you should copy to /usr/local/share/ca-certificates (note local) not /usr/share/ca-certificates/extra.


0

The "command-not-found" package is a linux utility; it responds to unknown commands at the command shell prompt, not just within python sessions. (I see there is also a python package of this name.) It has python among its dependencies, i.e. it uses python when triggered; so that accounts for why python is invoked whenever you type a command that the shell ...


0

You may need to specify a bind address on the -L option. Like: -L 192.168.1.100:1212:serverBehindFirewall:80 as requested, paste from below: Option "GatewayPorts" set to "yes" in /etc/ssh/ssh_config fixed the problem. This obviously does (almost) the same, as specifying "GatewayPorts yes". It binds to the specified address. The Option "GatewayPorts yes" ...


0

I had a similar error where xfce4 suddently wouldn't start after an automatic update on chrome's side. Solved the problem by downloading the latest version of crouton (https://github.com/dnschneid/crouton) and running sudo sh ~/Downloads/crouton -u -t xfce. (-u for update and -t xfce to specifiy xfce environment target.) I'm by no means an expert, but it ...


3

debootstrap a clean new system in a directory, do what you need within that directory using chroot, and afterwards take all that you find within chrootdir/var/cache/apt/archives/. Edit after the second answer: I just checked the manual and it appears that one can also use debootstrap to do most if not all of what you want: it can be run under fakeroot, and ...


2

Most of your configuration is stored in /etc and in files in your home directory. So if you backup /etc and /home (which is a good idea anyway) you'll have everything you need to restore your settings after re-installing. The rest of your configuration is in /var, but on Ubuntu that's configuration relating to what packages are installed; if you want to ...


1

The Device Mapper driver is missing. Run make nconfig or make menuconfig: Device Drivers ---> [*] Multiple devices driver support (RAID and LVM) ---> <*> Device mapper support and recompile your kernel.


1

Your system is trying to download its package lists from mirrors.compuscene.org, which appears to be offline at the moment (the domain name cannot be resolved to an IP address). Edit your apt sources: sudo nano /etc/apt/sources.list Remove all lines that contain mirrors.compuscene.org and add the following lines: deb http://fr.archive.ubuntu.com/ubuntu/ ...


2

Funny question. It seems you can see snmp values of a process in /proc/[pid]/net/dev_snmp6/[DEV] at least for IP6: ifIndex 4 Ip6InReceives 4 Ip6InHdrErrors 0 Ip6InTooBigErrors 0 Ip6InNoRoutes 0 Ip6InAddrErrors 0 ...


1

I finally figured it out myself. Solution: First I booted OpenSUSE from USBKEY in UEFI mode. In the intaller partitioner, I removed all partitions in the SSD and HDD Then I created a new partition table for each disk, still using the partitioner. Booted up from Ubuntu 15.04 USBKEY installer and it finally could manage partitions and install the system ...



Top 50 recent answers are included