Tag Info

New answers tagged

0

You could test out if image based PDF's are polluted as well. First convert PDF to (multipage) TIFF, e.g. with ghostscript: gs -sDEVICE=tiffg4 -o sample.tif sample.pdf Then convert the TIFF to PDF, e.g.: tiff2pdf -z -f -F -pA4 -o sample-img.pdf sample.tif This result in a PDF file where the pages are images instead of text. Alternatively, if your ...


0

To learn Linux programming there are many sources. A simple Google search lead me to this downloadable book which (according to its index) seems to provide a good system programming view and this. To learn Linux commands just ls /bin and /sbin and man those files you will have a wealth of information and you will get to be a guru. According to the guru's ...


0

On Ubuntu 12.04, there is mkpasswd (from the whois package): Overfeatured front end to crypt(3) mkpasswd -m sha-512 -s <<< YourPass Where: -m = Compute the password using the TYPE method. If TYPE is help then the available methods are printed. E.g. mkpasswd -m help -s = Read password from stdin


0

I would recommend to find a friend actually using linux. You can learn from inet and many sources, but the initial phase is - you must get information about what to learn. After you see the basic concepts in work (commandline with tab, man pages, configuration in /etc, logs in /var, users in /home, rights, bash programming and utilities, ssh, X display, ...


0

You could also run gtf 1280 1024 60 on the old monitor and add the Modeline to /etc/X11/xorg.conf . (If it exists. If not, you still can try to create it - see e.g. http://askubuntu.com/questions/217758/how-to-make-an-xorg-conf-file ).


2

The best way to learn Linux is to force you to use it on a daily basis. Start by booting your system always in Linux and configure the Window Manager of your choice (GNOME, Mate, KDE, whatever) to suit your needs. Then, setup your favourite webbrowser (chrome, firefox, ...) and install a text editor or an IDE on which you feel comfortable (I myself use Vim ...


0

You can use busybox's dd applet with its bs, count and skip arguments to split a large file into chunks. dd manpage part from busybox: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|noerror|sync|fsync] Copy a file with converting and formatting if=FILE Read from FILE instead of ...


0

I don't know if that works, but instead of using xrandr --output CRT1 --mode "1280x1024_60.00" you should try xrandr -d:0 --output CRT1 --mode "1280x1024_60.00"


0

The simple way I would use is to sniff ICMP traffic by any utility (wireshark, tcpdump, iptables etc.). For example, you can use the following approach: link


-1

"cat /dev/zero > /tmp/cache.cleaner ; rm -f /tmp/cache.cleaner This even doesn't need root access! (Assuming your /tmp is mounted as tmpfs with max size)" Just great it does the job even with no root access. In my case tmpfs is mounted on /dev/shm but the idea keep working (of course ;-) )


1

I believe, that you can download statically linked busybox binary for your ARM-based microcontroller: http://www.busybox.net/downloads/binaries/latest/ As far as I know, all the binaries provided there include all the utilities which are described here: http://www.busybox.net/downloads/BusyBox.html So, you'll be able to use split utility in a very ...


21

In a word: binfmt_misc. It's a Linux-specific, non-portable, facility. There are a couple of formats that are recognized by the kernel with built-in logic. Namely, these are the ELF format (for normal binaries) and the shebang convention (for scripts). (thanks to zwol for the following part of the answer). In addition, Linux recognizes a couple of esoteric ...


0

When you run it as root, losetup -f will automatically create loop devices as needed if there aren't any free ones available. So rather than doing it yourself with mknod, the easiest way to create a new loop device is with sudo losetup -f. That approach will give you a free existing loop device if one exists, or automatically create a new one if needed.


1

The problem is that whenever you delimit a command with & this command executes in the background and the following command will start immediately with the first command and not after it. Your problem is unrelated to nohup (which means that programs that are still running when the parent shell exits should not be killed but continue execution). For your ...


0

SqliteMan is a good tool.Very Rich in features plus its available in the ubuntu software center.


4

It won't be fast, especially for a large tarball with lots of files, but in bash you can do this: tar -tzf tarball.tgz | while IFS= read -r file; do tar --no-recursion -xzf tarball.tgz -- "$file" gzip -- "$file" done The first tar command extracts the names of the files in the tarball, and passes those names to a while read ... loop. The file ...


7

Sure, of course, since you can develop portable software that runs on both MacOS and Linux. Be sure to test it on Linux at regular intervals to make sure you haven't unintentionally added something unportable. If you want to use Linux-specific features then you will have more of a hard time. Depending on what it is you do, the program may compile on MacOS ...


0

This is untested, but it'll at least bypass the “device is busy” problem. Move one the mount point to a different location. That way, there won't be any more confusion between the two mount points. mkdir /foo mount --move /mnt/temp/dir /foo


2

Yes, you should definitely use tcpdump -n dst host gmail.com instead of tcpdump -n dst host <ipaddress of gmail> . This is because gmail.com has multiple IP addresses (I count 5 from my point of view: 4 v4 and 1 v6) and giving the name to the filter will automatically match all of them. Otherwise you have to specify a much longer filter that ...


0

If I understand correctly, you have directories that contains files called 1, 2, 3, etc. (up to a variable limit) and you want to replace each directory by a file which has the same name as the directory, and is the concatenation of the files in numerical order. In this answer, I'm going to use zsh, because it's a lot easier to use than a combination of ...


6

1) Download and install Samba: apt-get install samba samba-common 2) Backup samba.conf: cp /etc/samba/smb.conf /etc/samba/smb.conf.bak 3) Edit samba.conf: nano /etc/samba/smb.conf Replace all with and edit it to your wishes: [global] workgroup = arbeitsgruppe server string = %h server (Samba %v) log file = ...


0

As far as I know, the initramfs cpio archive is just linked into the kernel. Hence, this should work: use dd to extract the range between c17fd8cc and c19d7b90 unpack the resulting data ny using an CPIO unpacker.


0

Have you looked at the Linux Benchmark Suite? It includes multiple tools to measure performance on a wide range of storage formats, including disk (Memory cards, etc) and memory (RAM, L1 and L2 cache, etc).


2

You need to create two files: one for service, other for timer with same name. example: /etc/systemd/system/test.service [Unit] Description=test job [Service] Type=oneshot ExecStart=/tmp/1.sh /etc/systemd/system/test.timer [Unit] Description=test [Timer] Persistent=true OnUnitActiveSec=10s OnBootSec=10s [Install] WantedBy=timers.target after that ...


0

Normally you'd do mdadm --assemble --scan /dev/md0 --name server:0 and that would assemble the array, or maybe tell you to mdadm --run /dev/md0 to assemble it degraded. You can also explicitly give the devices instead of using --scan. Then you can get your data off (or add a drive to rebuild). That should work. Of course, something happened to erase the ...


0

The maintainer of udiskie pointed out that stale mount points not being cleaned up is a bug in udisks2. In fact, after more tests, I can confirm that sometimes the mount point is deleted.


1

A swap signature does not necessarily mean that the system is currently actively using this partition for swap. It just means it looks like a swap partition on disk. And that's what LVM is asking you: do you want to wipe this thing that already seems to be on the disk or not? If swapoff says the device is not in use, then you're good. If in doubt, have a ...


1

You want to use /dev/sda3 as a new LVM PV. /dev/sda3 was previously used as a swap device. You have 2 choices: Overwrite/wipe the previous contents of the device and make it an LVM PV. Don't overwrite, leave it alone, and abort the operation. Naturally, it will not become an LVM PV. You cannot have it both ways. If you want to use this device as an ...


2

As @VincentNivoliers said in his comment, your issue comes from the line mouse=a. It enables the mouse in all modes of vim, ie letting you put the cursor where you click. a means this is active in all modes. If you don't want vim to care about your mouse, just set mouse= (no value). Then, you could use your mouse to copy'n'paste from your clipboard as in a ...


0

The Kernel has a driver for whatever bus the port is on (PCI, USB, PCMCIA -- actually that one's more complex and nobody uses it anymore, so forget PCMCIA). That driver has mapped the registers on that bus (this is different from a CPU register) to memory and keeps a watch on them. When a cable is plugged in, ethernet hardware changes its registers and the ...


0

I can only really answer the "extra question". "How to detect the signal when a cable is connected". So, assuming 10*/Base-T, there is a kind of a carrier signal that the device detects and makes that information available to the device driver. The device driver will typically send a message via the kernel logger that "ETHX: LINK DETECTED". That information ...


0

Why did you remove the R8169-driver? It should have worked with your card since late 2006.


1

Check for the existance of /etc/debian_version. Or you could use lsb_release -a.


1

Try to first look if a /etc/debian_version exists. It should be there if it's a Debian based distro. Usually, looking for apt files could give a clue. For instance, look at the conf in /etc/apt/ or if a /var/cache/apt/ exists. Unforunately, apt can be setup on another distro, or an admin could have set dummy files or directories for some compatibility ...


5

You can view if a file called /etc/debian_version exists. $ cat /etc/debian_version wheezy/sid If it exists, you also can see the version of debian. Also distributions like Ubuntu, Linux Mint, and so on, which are based on Debian have that file. Actually most distributions have a release file you can also try and see what comes out: cat /etc/*release


1

This does not concern the filesystem structure, but you could check whether the apt-get (Debian) or the yum (non-Debian) package management commands are installed.


0

According to the logs, the kernel is getting an error from the hardware when it tries to read the partition table immediately after detecting the card. Yet, when you call partprobe later, the kernel is able to read the partition table just fine. It looks like there is either a hardware error or a driver bug that causes the initial read to fail. It could be ...


1

Some advances, (I will edit this answer if/when I find a proper final solution). After doing a full backup of the device using @INDIVIDUAL-IT's dd command (I think using a bs=1M made the transfer painfully slow though). I was not able to mount the backup file, but a # dd if=backup.img of=backup-skip.img bs=1M skip=4 did create a mountable file ...


1

You can use grep to filter out usernames: grep -wvf ignore.txt /etc/passwd | awk ... grep is used to search for patterns usually, but with -v can be used to negate the search, and thus for filtering. The matches can be a bit broad (for example, joe will filter out joe and joey), so use -w to restrict its effect to whole-word matches. Other suggestions: ...


1

'Used' is real-time (or at least, close to it). It's important to note that the value for 'used' on the first line includes buffered and cached memory, and that even the value for 'used' on the second line includes file-backed (i.e. non-anonymous) pages that can be dropped without swapping if needed. Generally, these numbers should (roughly) match what you ...


0

Is it correct, you want to use your eth10 interface as source interface to make ping 192.168.1.133? If yes, you should use ping command with -I option and specify source IP address, or source interface name. Here is an example: ping -I 192.168.1.150 192.168.1.133 or ping -I eth10 192.168.1.133


1

In fact mkisofs 2.01 points to genisoimage: $ mkisofs --version mkisofs 2.01 is not what you see here. This line is only a fake for too clever GUIs and other frontend applications. In fact, this program is: genisoimage 1.1.11 (Linux) From man genisoimage you can try the -m option: -m glob Exclude files matching glob, a shell wildcard pattern, ...


0

For me it looks like your partition table is somehow messed up. make a complete backup of the card with dd: dd if=/dev/sdd of=backup.img bs=1M . If dd fails to copy the sd-card, then it is most likely hardware broken. You still can try your luck with ddrescue use TestDisk to try to recover the partition table. Do the recovery on the backup.img file, or ...


1

rename /bin/umount to /bin/umount.real Write a script which runs the commands you want to call before unmounting and then call /bin/umount.real create a soft link to your script as /bin/umount


0

According to the Open-iSCSI documentation: 8.2 iSCSI settings for iSCSI root When accessing the root partition directly through a iSCSI disk, the iSCSI timers should be set so that iSCSI layer has several chances to try to re-establish a session and so that commands are not quickly requeued to the SCSI layer. Basically you want the opposite of ...


1

jkt123's will work for most distributions I guess. However for Arch Linux it didn't work, at least not with the packages I have available. The indices you can set with grub-set-default only correspond to the main menu entries. The kernel options are however in a submenu. So either you move the kernel entry out of the submenu into the main menu or you put ...


1

you can use tcptrack more info can be found at http://manpages.ubuntu.com/manpages/dapper/man1/tcptrack.1.html you'll find a detailed description of all connections and eventually select specific app connection


2

Kernel mode and user mode are a hardware feature, specifically a feature of the processor. Processors designed for mid-to-high-end systems (PC, feature phone, smartphone, all but the simplest network appliances, …) include this feature. Kernel mode can go by different names: supervisor mode, privileged mode, etc. On x86 (the processor type in PCs), it is ...


1

As mentioned in the comments, you can set the default kernel to boot into using the grub-set-default X command, where X is the number of the kernel you want to boot into. In some distributions you can also set this number by editing the /etc/default/grub file and setting GRUB_DEFAULT=X, and then running update-grub. The number is the index to an array of ...


0

Many Linux distro's have a LiveCD ISO which you can dump with dd directly to a USB stick. But a diffrent aproch which i like more is to use GRUB2 to boot LiveCD ISO directly, This will allow you to have several distos/tools on a single USB stick. Google for Multi ISO GRUB2, and you'll find few tools a guides.



Top 50 recent answers are included